Find the answer to your Linux question:
Results 1 to 3 of 3
I have installed SuSE server with apache, PHP and MySQL. MySQL seems to work allright when I am logged in. Also PHP seems to work the way it is supposed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    14

    Problem accessing MySQL


    I have installed SuSE server with apache, PHP and MySQL. MySQL seems to work allright when I am logged in. Also PHP seems to work the way it is supposed to. But when I try to access MySQL from a web page I run into a problem:
    after mysql_connect("localhost","username","password") nothing is written on the web page. Before that code everything written either in PHP or HTML prints on the page.

    Exactly the same code works fine on my old server, where the MySQL version is 4.1.12. On the new server the MySQL version is 5.0.18. The PHP versions are 4.3.0 and 5.1.2 respectively.

    Is there something I have overlooked when installing MySQL? Or PHP?

  2. #2
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    The mysql version is new, how bout the data? is it you dump the db from old mysql version or is it really new db?

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    14
    I was a bit too hasty. Restarting the server fixed the problem!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •