search

Home  >  Q&A  >  body text

linux(centos) 下安装phpstudy 如何命令行进入mysql

配置了phpstudy 可是进不去mysql
老是报-bash: mysqld: command not found

大神们帮帮忙吧 指点一下小弟~!!!

大家讲道理大家讲道理2854 days ago751

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 12:09:23

    Under Linux, run /usr/local/mysql/bin/mysql -u root -p to enter

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 12:09:23

    Your mysqld is not in the environment variable PATH, give it a try with the full path.
    If you are not sure of the full path, search with whereis mysqld.
    If you can't find it anymore, use the find command to search.

    reply
    0
  • 黄舟

    黄舟2017-04-17 12:09:23

    The solution is:

    ln -s /phpstudy/mysql/bin/mysql /bin

    reply
    0
  • Cancelreply