1.数据库的搭建(Xshell )
首先,登陆数据库服务器:mysql -uroot -p*** -h localhost
其次,创建新用户:create user 'username'@'%' identified by 'password';
然后,为用户设置权限: grant select,insert,delete,update,dorp,create to *.* on 'username'@'%';
最后,利用可视化工具登陆新用户,开始从dev数据库环境中导入test数据库环境相应的数据库。
注:利用可视化工具的菜单【工具】-【数据传输…】,一定要把 数据源 与 目标 搞清楚,否则不堪设想!!!
心得:会的不难,难的不会,好好积累……