开放数据库远程权限:
mysql -u root -p123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
创建以下数据库:
1、actor_c1001
2、actor_cross1
3、bx_web
4、log_s1
5、mmo_account
6、zgame_amdb
7、zgame_command
8、zgame_name
举例创建actor_c1001数据库,用户名密码默认即可,代码中使用的是root账户。