Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

php mysql

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

php mysql

Postby Steff » Fri Sep 19, 2003 1:31 am

:?:
Bonjour

On me demande de compiler php avec le module mysql. Je travaille sous windows 2000 server. Quelqu'un peux t-il m'expliquer comment on fait?

Merci
Cordialement
Steff
Steff
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 04, 2003 1:31 am

??????????

Postby ruturajv » Fri Sep 19, 2003 2:05 am

French was it?
Sorry ....
Not all of us understand that!
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Php and MySQL

Postby Steff » Fri Sep 19, 2003 2:19 am

Hello

Sorry, I have forget it.
I works under windows 2000 Server. We ask me to compile php with mysql module. Can you tell me how I can do this?

Thanks for your help
Cordially
Steff
Steff
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 04, 2003 1:31 am

windows

Postby ruturajv » Fri Sep 19, 2003 2:52 am

Are you planning to integrate PHP with IIS 5.0 if that is the case simply download the "php installer" and thats it

Mysql : Just install with its installer
Mysql connectivity with php is ON by default
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Php/Mysql

Postby Steff » Fri Sep 19, 2003 5:35 am

Thanks

I need one more time your help
How can I verify mysql module is well compiled with php?


Cordially
Steff
Steff
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 04, 2003 1:31 am

MySQL

Postby ruturajv » Fri Sep 19, 2003 9:48 pm

Try this code
Code: Select all
<?php
if ($conn = mysql_connect('your_host', 'username', 'password')) {
    echo("Connection successful, MySQL module working");
} else {
   echo ("Check hostname, username, password");
}
?>


Ideally you should know that what is the hostname, most likely 'localhost', or '127.0.0.1'
The username could be 'root' and whatever password you've assigned

If during the installation it has asked you for some password, etc
try using those![/code]
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby sigix » Sat Sep 20, 2003 3:46 am

i think mysql,odbc modules are shipped built in php :idea:
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

php mysql module

Postby Steff » Wed Sep 24, 2003 4:00 am

Hello

Thanks for your answers.

I try a thing like this :

<?php
if ($conn = mysql_connect('localhost', 'MySqlUser', 'MySqlPwdCcom')) {
echo("Connection successful, MySQL module working");
} else {
echo ("Check hostname, username, password");
}
?>

It answers me :

Warning: mysql_connect(): Access denied for user: 'MySqlUser@127.0.0.1' (Using password: YES)
and
Check hostname, username, password

I don't understand
I take the password and the user I found in mysql.ini.
So why I have this answer?

Can you help me ?
Thanks
Cordially
Stéphane Vauclaire
Steff
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 04, 2003 1:31 am

Postby sigix » Wed Sep 24, 2003 4:17 am

better create a user that will connect to mysql
check mysql user creating sql commands... :arrow:
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby sigix » Fri Sep 26, 2003 2:25 am

ok make a new user and test with that user
you can easily make new users with phpmyadmin...
and also
use this if you are on your own machine
if ($con=mysql_connect("localhost","root",""))
echo "connection made for you..."; :arrow:
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

mysql

Postby Steff » Fri Sep 26, 2003 2:46 am

Hello

Thanks. It works very well.

Cordially
Steff
Steff
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 04, 2003 1:31 am


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.