Menu

Dev-PHP and sql

Help
yolknet
2005-04-18
2012-12-07
  • yolknet

    yolknet - 2005-04-18

    Is it possible to set up a mysql-server so I can test my php-scripts with a database?
    If possible, do I only need to install mysql or do I also need apache?

     
    • Urs Mäder

      Urs Mäder - 2005-04-18

      there is no problem to test scripts with mysql.
      but...
      you need a local mysql server - no apache (devphp2 had an included webserver).

       
    • yolknet

      yolknet - 2005-04-19

      What do I need to configure? I installed mysql on my WinXP-machine, but when I try to connect to my database from the Internal Preview the next error returns is returned:
      "PHP Fatal error: Call to undefined function mysql_connect() in test.php on line 3"

      In my ini-file I found this option:
      sql.safe_mode Off Off
      Does that has anything to do with it?

       
      • Urs Mäder

        Urs Mäder - 2005-04-19

        you need a line
        extension=php_mysql.dll
        in your php.ini without commentsign(;) before

        sql.save_mode has nothing to do with mysql

        please post also your test.php if this not helps to you.

         

Log in to post a comment.

MongoDB Logo MongoDB