PHP-mysql connection !

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dmakris
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2003 7:58 am
Location: Greece

PHP-mysql connection !

Post by dmakris »

Hi.
I have installed Apache 1.3, PHP 4.0 and mysql 3.23.33 in a windows XP system.
Everything seems to be working except that i can't connect to mysql server (the server is running) when i execute any php script.
I haven't made any changes to any configuration file like php.ini or anything else.
Thanks in advance...
:roll:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Do you get any error messages? What does the code look like that you are using to connect to the database?

Mac
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Have you setusername and password for MySQL? if you have you need to use it, if you haven't, don't use mysql_connect().
dmakris
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2003 7:58 am
Location: Greece

Post by dmakris »

Thanks !!!
It was so simple as i had to create new users.
So silly of me :oops:
Do u know any tool for administration of the sql server (except mysql administration) that I can use to create tables or users in win xp?
Thank you very much
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Script based - phpMyAdmin
Program based - Go to mysql.com and you'll find several
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Link for phpMyAdmin:
http://www.phpmyadmin.net

Mac
Post Reply