简体   繁体   中英

mysql.server start not working on mac

I have installed mysql and I get the version of mysql from command prompt by

mysql --version.

But when I try to start / stop my server from command prompt by

 mysql.server start 

I get an error

-bash: mysql.server: command not found

Have edited my .bash_profile

export PATH=$PATH:/usr/local/mysql/bin/
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH

使用以下命令: sudo /usr/local/mysql/bin/mysqld_safe&

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM