7. 给予数据库远程协助权限 在创建user数据库
mysql -uroot -pidc.7ccw.cc
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'idc.7ccw.cc' WITH GRANT OPTION; flush privileges;
flush privileges;
CREATE DATABASE IF NOT EXISTS user default charset utf8mb4 COLLATE utf8mb4_general_ci;
quit
8.导入数据库
cd /root/sql/
mysql -uroot -pidc.7ccw.cc --default-character-set=utf8 user< user.sql
ulimit -S -c 0 > /dev/null 2>&1