Jump to content

MySQL dbConnect Failed.


.:HyPeX:.

Recommended Posts

Well this is quite weird, i cannot access the mysql from the same VPS but i can from my PC.

I.e, i did the script in my PC, tested it and worked. Moved it to the VPS server, and the script fails. Tested aswell with localhost adress. (127.0.0.1). Still not working.

What could cause this?

PD: Its not a rights error, tested in both sides giving admin rights.

Edited by Guest
Link to comment
Do you have all the required files?

The exact file is there..

VMkvfvH.png

Just past this 2 commands to your linux prompt and restart server.

It's common mysql lib error for 64bit linux systems.

wget [url=https://nightly.multitheftauto.com/files/x64/libmysqlclient.so]https://nightly.multitheftauto.com/files/x64/libmysqlclient.so[/url].16 
cp libmysqlclient.so.16 /usr/lib/ 

Link to comment
  
RROR: Could not load root/mta-developingsw/mods/deathmatch/./dbconmy.so - libmysqlclient.so.16: wrong ELF class: ELFCLASS64 
  

You may delete the cp'ied libmysql befeore typing this commands

apt-get update 
apt-get upgrade 
apt-get install libmysqlclient16 

How to? i'm not the main owner of the VPS nor the one who sets it up, and know some basic things like managing the servers, but not much more.

(I got full acccess thought)

Link to comment

just copy and paste

  
cd /usr/lib/  
rm -f libmysqlclient.so.16 <-- removes this file 
apt-get install libmysqlclient16 <-- this will install you the right lib if possible. 
  

It may not work cuz mta needs lib no 16 and this is rather old lib so updater may not have it in database

Edited by Guest
Link to comment
just copy and paste
  
cd /usr/lib/  
rm -f libmysqlclient.so.16 <-- removes this file 
apt-get install libmysqlclient16 <-- this will install you the right lib if possible. 
  

  
E: Unable to locate package libmysqlclient16 
  

Just try this

wget [url=https://nightly.multitheftauto.com/files/libmysqlclient.so]https://nightly.multitheftauto.com/files/libmysqlclient.so[/url].16 
cp libmysqlclient.so.16 /usr/lib/ 

The last time I gave you 64bit version apperently mta needs 32bit version of this lib.

Here is more about your problem http://bugs.multitheftauto.com/view.php?id=8387

Link to comment
it still gives the same error :&

Suggest you to go this path

cd /usr/lib/  

Double check if file exist with

ls 

remove if exist

then this

  
wget [url=https://nightly.multitheftauto.com/files/libmysqlclient.so]https://nightly.multitheftauto.com/files/libmysqlclient.so[/url].16 
cp libmysqlclient.so.16 /usr/lib/ 
  

shut down srv mta and restart mta

Link to comment
  • 11 months later...

Old topic but bumping since i had an issue setting up a new VPS, did the 32bit download of the file, now it gives the same error but ELFCLASS32?! Wth? I had the ELFCLASS64, so i downloaded the 32bit lib and now it gives error ELFCLASS32, its a debian 7 wheezy 64bit.

EDIT: Apparently tried to re-download the 64bit lib and it worked now, but that info should be told, that now the 64bit lib works ;)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...