mysql采坑

 
 授权命令: grant all privileges on *.* to root@"%" identified by "root" with grant option; 

flush privileges

拷贝data目录,提示表不存在:https://www.cnblogs.com/diyunfei/p/8395228.html

-bash: mysql: command not found 解决办法:

alias mysql=/usr/local/mysql/bin/mysql
mysql -u root -p

 

posted @ 2020-07-02 19:54  榕树下的回忆  阅读(140)  评论(0编辑  收藏  举报