mysql -u root -p123456
create database baibaoxiyou1;
create database gm_x;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
\q
导入数据
mysql> use baibaoxiyou1;
Database changed
mysql> source /www/baibaoxiyou1.sql
mysql> use gm_x;
Database changed
mysql> source /www/gm_x.sql
php禁用函数exec
vi /etc/php.ini
disable_functions = exec
systemctl restart php-fpm