Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Can't seem to connect to MySQL database (CentOS7)

$
0
0
Hello, I have just converted my script from y_ini to MySQL R41-2 and have used this tutorial as I am fairly new to it: http://forum.sa-mp.com/showthread.php?t=627520, however, I can't seem to connect to the database I created even though everything is correct, any help is appreciated!

There's another issue aswell, when I uploaded the script from my localhost to the VPS and used the CentOS7 plugin, the MySQL plugin fails to run due to the following error:

Code:

[19:48:19]  Loading plugin: mysql.so
[19:48:19]  Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)

P.S: On GitHub I noticed that in the FAQ, however, I don't know how to install that library, nor do I know from where to get the static version of the plugin.

Code:

Q: I get a Failed (libmysqlclient_r.so.18: cannot open shared object file: No such file or directory) error, how do I fix this?
A: You don't have the MySQL client library installed. Install it through your package manager. Make sure you install the 32bit (i386, i686, etc) library, or else the plugin won't run.

Q: I can't install the required libmysqlclient library on my Linux distribution. What do I do now?
A: Use the mysql_static.so plugin file. It's statically linked to the libmysqlclient library.

Thank you.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>