Wei Posted February 17, 2014 Share Posted February 17, 2014 I am using dbConnect function and since I bought VPS server I can't connect to mysql with this functions. I have tryed to connect with php mysql and is working fine with same information. Did anyone had same problem with that ? Link to comment
MTA Team Blokker_1999 Posted February 17, 2014 MTA Team Share Posted February 17, 2014 did you test that php connection on the same machine? Is the mysqld running localy? Link to comment
Wei Posted February 17, 2014 Author Share Posted February 17, 2014 Yes apache is running on the same machine. I've tested like this <!DOCTYPE html> <html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; // Create connection $con=mysqli_connect("localhost","root","","rgaming"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> </body> </html> Yes mysql server is running localy Link to comment
=KoG=Rouche Posted April 3, 2014 Share Posted April 3, 2014 Did u add the mysql module to your MTA server folder ? Link to comment
ixjf Posted April 15, 2014 Share Posted April 15, 2014 There's no need to use any modules - the only thing required is the libmysqlclient.so.15 Linux package. Link to comment
=KoG=Rouche Posted April 16, 2014 Share Posted April 16, 2014 Here is the wiki page about module ! https://wiki.multitheftauto.com/wiki/Mysql Link to comment
ixjf Posted April 16, 2014 Share Posted April 16, 2014 As I already said, MTA has built-in MySQL support - there's no need for any modules. Link to comment
=KoG=Rouche Posted April 16, 2014 Share Posted April 16, 2014 For me (on Debian 64 bits) functions without module dont work :-/ Then i added the modeule and it works fine now. Link to comment
=KoG=Rouche Posted April 16, 2014 Share Posted April 16, 2014 In fact there is 2 ways of using MySQL. > MTA Built-in functions (dbConnect, dbQuery ...) > MTA Team MySQL Module (mysql_connect, mysql_close, ...) I understand it now and i'll use Built-in functions for the next scripts. 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