[Mysql] Couldn't connect to database. -
Glossy42O - 03.01.2015
Title^^
What do i need to show? (code? or?)
EDIT: it also when i connect won't show dialog..
Re: [Mysql] Couldn't connect to database. -
Lordzy - 03.01.2015
Quote:
Originally Posted by Stuun23
Title^^
What do i need to show? (code? or?)
|
MySQL Log, if there's nothing relevant in it, show your server_log.
Re: [Mysql] Couldn't connect to database. -
Glossy42O - 03.01.2015
PHP код:
[09:07:34] [DEBUG] mysql_connect - host: "localhost", user: "root", database: "tva", password: "****", port: 3306, autoreconnect: true, pool_size: 2
[09:07:34] [DEBUG] CMySQLHandle::Create - creating new connection..
[09:07:34] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
[09:07:34] [DEBUG] CMySQLHandle::Create - connection created (id: 1)
[09:07:34] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[09:07:35] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[09:07:35] [DEBUG] mysql_errno - connection: 1
[09:07:35] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[09:07:35] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[09:07:35] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
Re: [Mysql] Couldn't connect to database. -
LivingLikeYouDo - 03.01.2015
Your script can't connect to your MySQL setup. Are you sure you have a MySQL and Apache running on your XAMPP or whatever you use?
If yes, are you sure if you are using the correct password?
If no, then turn it on.
@Regarding password - If yes, then are you sure there isn't anything disturbing the connection where you start it in your script?
If no, then make sure you insert the correct password, as the server will fail to access the database due to an incorrect password.
Cheers!
Re: [Mysql] Couldn't connect to database. -
Glossy42O - 03.01.2015
o.o which pass?
Re: [Mysql] Couldn't connect to database. -
LivingLikeYouDo - 03.01.2015
Quote:
Originally Posted by Stuun23
o.o which pass?
|
Well, I guess I was wrong on my password point of view.
Are you sure you have 'tva' database in your phpMyAdmin, and if there is, make sure that 'Apache' and 'MYSQL' are working properly on your XAMPP or whatever you use.
Re: [Mysql] Couldn't connect to database. -
biker122 - 03.01.2015
There is no password by default (if its hosted with wamp or whatever shit thats called)
Re: [Mysql] Couldn't connect to database. -
Glossy42O - 03.01.2015
I got database. btw, if u want to know where i took the tut from seach on ****** "samp newbienoob mysql"
If u need link say.
Re: [Mysql] Couldn't connect to database. -
Glossy42O - 04.01.2015
bump