Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need to install mysql-devel in the server that has cPanel

Discussion in 'Database Discussions' started by imehrzadm, Nov 15, 2017.

  1. imehrzadm

    imehrzadm Registered

    Joined:
    Nov 15, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hi my friends

    I have Python script in my cPanel server and need to connect my script to MYSQL, for connecting Python to MYSQL i need to have libmysqlclient

    Code:
    File "/usr/lib64/python3.6/site-packages/MySQLdb/init.py", line 19, in <module>
        import _mysql
    ImportError: /usr/lib64/libmysqlclient.so.18: version `libmysqlclient_16' not found (required by /usr/lib64/python3.6/site-packages/_mysql.cpython-36m-x86_64-linux-gnu.so)
    Please help me to fix problem.

    I ask this question in cPanel forum because this error only occur on cPanel server and other servers without cPanel doesn't have this problem.

    thanks alot
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the specific command you are using, and the version of MySQL/MariaDB currently installed on your system? Note if you are using CloudLinux, review the following URL:

    Installing MySQL-Python on cPanel server

    Thank you.
     
Loading...

Share This Page