MAC install mysql issues

2018-06-15  本文已影响5人  Beatrice7

python install mysql

  1. Warning: World-writable config file ‘/etc/my.cnf’ is ignored
    数据库默认的编码全部改为UTF-8,以便正确地处理中文.
    如果在目录/etc下没有找到my.cnf, 先自己创建一个空的my.cnf,然后sudo chmod 644 my.cnf. 这里权限不能赋值为777或者666那种,因为如果其他人也有权限写就很危险,系统会自动ignore的。
  2. access denied for user root @localhost
    因为没有看弹出框的那个随机密码,所以只好重新修改密码了。
    参考:https://blog.csdn.net/lijilong_/article/details/70991809
  3. -bash: mysql: command not found mac
    (1)vim ~/.bash_profile;
    (2)添加 export PATH=$PATH:/usr/local/mysql/bin;
    (3)保存退出;
    (4)source ~/.bash_profile;
上一篇 下一篇

猜你喜欢

热点阅读