Hi,

 After install xampp, what should i change in the configuration file in order to let php & MySQL working properly? 

 I refer to one book before , it guide me to do this :

"
If you are using Unix, you most likely built PHP with MySQL during installation. If you are using Windows, however, in order for your PHP and MySQL to play nice with each other, you will need to make two changes to your php.ini file. Open the file using your text editor (such as Notepad). Locate the following lines:
; Directory in which the loadable extensions (modules) reside.

extension_dir = “./”

Change the last line to extension_dir = “c:\php\ext”

The next change involves locating and “uncommenting” the following line:

;extension=php_mysql.dll

Simply remove the semicolon at the beginning of the line to uncomment it.

You will also need to copy the file libmysql.dll from your c:\php directory into your
c:\windows\system32 or c:\winnt\system32 directory.

"

But i not dare to try this, Do any one have a proper solution

    If you install XAMPP using the Windows installer there is no big problems.

    You need not do any configuration.
    PHP Apache MySQL is done automatically.
    95% chance it will work perfect Out-Of-Box!!!

    Here are install instructions:
    http://www.apachefriends.org/en/xampp-windows.html

    Also very many users can answer anything in XAMPP forum:
    http://www.apachefriends.org/f/viewforum.php?f=34
    XAMPP for Windows
    Problems with the Windows version of XAMPP, questions, comments, and anything related.

      Thanks for your reply. By the way, i did try to copy some coding from book to testing create database . But it couldn't be browse and display with error message:

      "

      Object not found!

      The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

      If you think this is a server error, please contact the webmaster.
      Error 404
      localhost
      15/2/2010 12:58:10 AM
      Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

      "

      What should be the problem? I can 100% sure that the coding have no problem because all come from book.

        eistern82;10942550 wrote:

        What should be the problem? I can 100% sure that the coding have no problem because all come from book.

        LOL, no you can't, books have errors, some of them lots of errors.

          Could you post some code for me to test. My database user : is "root", Password:is empty.

          p/s: another question, if i using coding to create database is that mean i no longer need to use phpMyAdmin??

            Sorry About that, i just found that is not MySql Problem. I think i have to re check the problem.

              Currently I am using :

              Localhost:85
              User : root
              Password : empty

              so what should i configure in this code line:

              Is this correct to set like that --> $connect = mysql_connect(“localhost:85”, “root”, “ &#8221😉

                eistern82 wrote:

                But i not dare to try this, Do any one have a proper solution

                We have a guide in this forum on installing PHP 5 under Windows. It is based on what is described in the PHP manual, but is perhaps a little easier due to the focus.

                eistern82 wrote:

                Is this correct to set like that --> $connect = mysql_connect(“localhost:85”, “root”, “ &#8221😉

                Yes, it should be correct, except that you should make sure that you are using normal double quotes ("). But, you should not be using the MySQL extension for new scripts without good reason. You should use something like the MySQLi extension or the PDO extension.

                  Also note that MySQL can't be on the same port as your webserver, so "localhost:85" can't possibly be correct if you use http://locahost:85/ to connect to your webserver.

                    5 days later
                    Write a Reply...