Problem with UCP [From System64]
#1

Hello everybody.I am trying to test UCP from System64.But when I try to log in this warning shows me.
Код:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'zaraprom_system'@'localhost' (using password: YES) in /home/zaraprom/public_html/system32/s32ucp/connect.php on line 3
Access denied for user 'zaraprom_system'@'localhost' (using password: YES)
Line 3 is this
PHP код:
$connect mysql_connect("localhost""root""") or die(mysql_error()); 
So what`s the problem??
Reply
#2

You didn't even fill out the password parameter.
Reply
#3

Quote:
Originally Posted by king_hual
Посмотреть сообщение
You didn't even fill out the password parameter.
Yes he did.

It's likely that either:

a) Your password is incorrect (it's not blank)
b) The user "root" doesn't have the permissions needed to access the database

Also make sure your MySQL server is indeed ON.
If you're using XAMPP, go to xampp/phpMyAdmin/config.php and make sure your MySQL settings are as followed:

PHP код:
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true
Reply
#4

Sometimes it makes me wonder, do people even read the error messages?
Reply
#5

Quote:
Originally Posted by Sinner
Посмотреть сообщение
Yes he did.
Since when do blank passwords exist? I may be wrong, but I've never heard of a blank password.
Reply
#6

Код:
(using password: YES)
Your localhost doesn't use password.
Reply
#7

Код:
Access denied for user 'zaraprom_system'@'localhost'
It is not even connecting as root.
Reply
#8

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Since when do blank passwords exist? I may be wrong, but I've never heard of a blank password.
Blank password are allowed if you specify you aren't using a password. I use it for my local server
Reply
#9

I am using WAMP server for testing php and MySQL stuffs so how to fix it??
Reply
#10

Quote:
Originally Posted by Sinner
Посмотреть сообщение
Blank password are allowed if you specify you aren't using a password. I use it for my local server
Quote:

Access denied for user 'zaraprom_system'@'localhost' (using password: YES)

Anyway, you should connect to localhost, not root, and use a password ._.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)