linux mysql-server can't find mysql_config

前端 未结 6 782
栀梦
栀梦 2021-02-08 11:12

I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however I cannot find my mysql_config file.

command and output:

~$ lo         


        
相关标签:
6条回答
  • 2021-02-08 11:47

    On Fedora, install the mariadb-devel package, and you should have the binary.

    0 讨论(0)
  • 2021-02-08 11:56

    In Ubuntu 13.04 installation, it is at /usr/bin/mysql_config

    0 讨论(0)
  • 2021-02-08 12:05

    You can also do:

    find / -name my.cnf -type f
    
    0 讨论(0)
  • 2021-02-08 12:12

    The mysql_config executable is by default located in the bin directory of the MySQL server installation if you install it from precompiled binaries. But if you install it using apt-get it may not exist on your server.

    Try:

    sudo apt-get install libmysqlclient-dev
    
    0 讨论(0)
  • 2021-02-08 12:12

    yum install mariadb-devel works for Centos 7 too, this puts the mysql_config into all the places that pip install mysqlclient requires/looks for it.

    0 讨论(0)
  • 2021-02-08 12:13

    Try /etc/my.cnf, that is the standard file for mysql config.

    0 讨论(0)
提交回复
热议问题