MYSQL issue
#1

pawn Код:
[14:26:53] Error: | Query: Function: mysql_store_result called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
[14:26:53] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
[14:26:53] Error: | Query: Function: mysql_num_rows called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
[14:26:53] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
[14:26:53] Error: | Query: Function: mysql_query called when not connected to any database. Access denied for user 'root'@'localhost' (using password: YES).
i get many of this errors but i don't understand whats wrong.

pawn Код:
#define         SQL_HOST            "127.0.0.1" //5.175.193.248
#define         SQL_USER            "root"
#define         SQL_DB              "roleplay"
#define         SQL_PASS            ""
And no there is no PASSWORD on my MYSQL database
Reply
#2

"using password: YES" Are you sure? It wouldn't display this otherwise.
Reply
#3

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
"using password: YES" Are you sure? It wouldn't display this otherwise.
Im sure about it
Reply
#4

Show us the line where you connect.
Reply
#5

If you're using WAMP, here we go.

First go to this directory (4.x.xx = phpmyadmin version)

PHP код:
C:\wamp\apps\phpmyadmin4.x.xx 
open the file:

PHP код:
config.inc.php 
and leave this line like this:

PHP код:
$cfg['Servers'][$i]['password'] = ''
and also:

PHP код:
$cfg['Servers'][$i]['AllowNoPassword'] = true
Reply
#6

Quote:
Originally Posted by Fel486
Посмотреть сообщение
If you're using WAMP, here we go.

First go to this directory (4.x.xx = phpmyadmin version)

PHP код:
C:\wamp\apps\phpmyadmin4.x.xx 
open the file:

PHP код:
config.inc.php 
and leave this line like this:

PHP код:
$cfg['Servers'][$i]['password'] = ''
and also:

PHP код:
$cfg['Servers'][$i]['AllowNoPassword'] = true
I have that, but still giving me the erros that there is an password
Reply
#7

bump
Reply
#8

Quote:

Show us the line where you connect.

....
Reply
#9

@Fel486: Woah man, you've got a lot of reading to do if you don't understand difference between phpmyadmin and mysql server.

@OP: You might've probably used wrong order of arguments on connect, and you are using DB name instead of password. Show us that connect line.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)