What is this problem??Help me!

Codes here !

Moderators: egami, macek, gesf

Post Reply
User avatar
x_sky58
php-forum Active User
php-forum Active User
Posts: 49
Joined: Thu Jun 16, 2005 5:38 am

Sat Jul 30, 2005 4:25 am

What problem is this??Is the usename has been denied??

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'php sky'@'localhost' (using password: YES) in C:\Program Files\Apache Group\Apache2\htdocs\dbconnect.php on line 2
Could not connect to database

I really forgot my username,and how can i find it back....don't scold me,i really cannot think back my username again.....
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Sat Jul 30, 2005 4:35 am

open C:\windowsdir\my.ini
User avatar
x_sky58
php-forum Active User
php-forum Active User
Posts: 49
Joined: Thu Jun 16, 2005 5:38 am

Sat Jul 30, 2005 4:47 am

- = Oleg = - wrote:open C:\windowsdir\my.ini
I followed your instruction and i added this script to my.ini(nut my file is in mysql's folder),then i restart but cannot run,error is found....

How to do now??
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Sat Jul 30, 2005 5:40 am

where are in my instruction i wrote thet you must add script?
in this file mysql stors a login with password....
User avatar
x_sky58
php-forum Active User
php-forum Active User
Posts: 49
Joined: Thu Jun 16, 2005 5:38 am

Sat Jul 30, 2005 5:38 pm

sorry,the code below the message confused me........okay,now my problem is this:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '3306' (10065) in C:\Program Files\Apache Group\Apache2\htdocs\dbconnect.php on line 2
Could not connect to database

why???Is the port 3306 the original port for mysql??
User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Sat Jul 30, 2005 8:37 pm

In the comments part of this manuals' section you may find your answer!
MySQL : Can't connect to [local] MySQL server
Sincerely,
Gonçalo "gesf" Fontoura
User avatar
x_sky58
php-forum Active User
php-forum Active User
Posts: 49
Joined: Thu Jun 16, 2005 5:38 am

Fri Aug 05, 2005 1:58 am

many try,try and try...but still cannot get the problem....i also see the guide you had given to me in mysql.com......

:( :(
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Aug 05, 2005 2:03 am

i have such problems whan i install phpBB under php5. it was long time ago, but i thnk that thay fix a problem, i see thay havent do that.

install last php 4 (4.4.0 i think) it works.


problem was that php 5 dont whanted to save the file with configuration, and just skipp that section (i always saw a installing screen.)
User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Fri Aug 05, 2005 5:32 am

got it running on php5 without any problems: Oleg, its your machine that is a bit f***ed up :) or the config
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Aug 05, 2005 6:20 am

might be =)
User avatar
x_sky58
php-forum Active User
php-forum Active User
Posts: 49
Joined: Thu Jun 16, 2005 5:38 am

Sat Aug 06, 2005 2:06 am

sorry,evrybody.....i use localhost,so no phpBB,i still cannot solve....well,i will show all my script to check either my installation has problem or not.....
Post Reply