.:HyPeX:. Posted January 9, 2015 Share Posted January 9, 2015 (edited) 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 January 9, 2015 by Guest Link to comment
Castillo Posted January 9, 2015 Share Posted January 9, 2015 And what error does it give you? Link to comment
.:HyPeX:. Posted January 9, 2015 Author Share Posted January 9, 2015 And what error does it give you? ERROR: Could not load root/mta-developingsw/mods/deathmatch/./dbconmy.so - libmysqlclient.so.16:cannot open shared object file: no such file or directory. Its a linux debian 3.2.54-2 x86_64 vps by the way. Link to comment
Castillo Posted January 9, 2015 Share Posted January 9, 2015 Do you have all the required files? Link to comment
.:HyPeX:. Posted January 9, 2015 Author Share Posted January 9, 2015 Do you have all the required files? The exact file is there.. Link to comment
Mizudori Posted January 9, 2015 Share Posted January 9, 2015 Do you have all the required files? The exact file is there.. 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
.:HyPeX:. Posted January 9, 2015 Author Share Posted January 9, 2015 RROR: Could not load root/mta-developingsw/mods/deathmatch/./dbconmy.so - libmysqlclient.so.16: wrong ELF class: ELFCLASS64 Link to comment
Mizudori Posted January 9, 2015 Share Posted January 9, 2015 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 Link to comment
.:HyPeX:. Posted January 9, 2015 Author Share Posted January 9, 2015 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
Mizudori Posted January 10, 2015 Share Posted January 10, 2015 (edited) 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 January 10, 2015 by Guest Link to comment
.:HyPeX:. Posted January 10, 2015 Author Share Posted January 10, 2015 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 Link to comment
Mizudori Posted January 10, 2015 Share Posted January 10, 2015 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
.:HyPeX:. Posted January 10, 2015 Author Share Posted January 10, 2015 it still gives the same error :& Link to comment
Mizudori Posted January 10, 2015 Share Posted January 10, 2015 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
.:HyPeX:. Posted January 10, 2015 Author Share Posted January 10, 2015 Its working now. Thanks Link to comment
Mizudori Posted January 10, 2015 Share Posted January 10, 2015 No problem mate, sometimes those things like to be a pain in the a** Good luck wkth your mysql adventure. It gets better later! Link to comment
.:HyPeX:. Posted December 25, 2015 Author Share Posted December 25, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now