![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programming Guru
![]() |
(Assuming Windows) From command prompt, go to your MySQL bin directory and type "mysql.exe", if it opens to a "mysql> " screen then you're fine... if it errors out then you're not.
__________________
|
|
|
|
|
|
#12 |
|
Programmer
|
tempest - I did that and it gave me the error 2003 again.
BlazingWolf - Dunno how to, by looking for the MySQL module, do you mean setting PHP.ini to recognize it? I'd need someone to explain how.
__________________
People say I'm crazy, but I have the heart of a little boy. It's in my desk at home. |
|
|
|
|
|
#13 |
|
Programming Guru
![]() |
You need to start MySQL, it's not running... tell me the files you have in your MySQL bin directories and i'll tell you which one to execute to start your MySQL server.
__________________
|
|
|
|
|
|
#14 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
MySQL is running - mysql.exe works. What you need to do is go into php.ini, and find the lines mentioning mysql.so and mysqli.so. Remove the semicolon ( ; ) from the beginning of these lines, save, and restart Apache.
|
|
|
|
|
|
#15 | |
|
Programmer
|
I found the MySQLI and MySQL sections, but where exactly do you want me to remove the semicolons?
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1
; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =
; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =
; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off
[MySQLI]
; Maximum number of links. -1 means no limit.
mysqli.max_links = -1
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysqli.default_port = 3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_password =
; Allow or prevent reconnect
mysqli.reconnect = OffI uploaded this to a site and searched through the webpage, there aren't any lines with MySQL.so or MySQLI.so Quote:
comp-err.exe vygwinb19.dll isamchk.exe libmySQL.dll my_print_defaults.exe myisam_ftdump.exe myisamchk.exe myisamlog.exe myisampack.exe mysql.exe mysqladmin.exe mysqlbinlog.exe mysqlc.exe mysqlcheck.exe mysqld.exe mysqld-max.exe mysqld-max-nt.exe mysqld-nt.exe mysqld-opt.exe mysqldump.exe mysqlimport.exe mysqlshow.exe mysqlwatch.exe pack_isam.exe perror.exe replace.exe winmyadmin.cnt winmysqladmin.exe winmysqladmin.GID WINMYSQLADMIN.HLP
__________________
People say I'm crazy, but I have the heart of a little boy. It's in my desk at home. Last edited by ArchAngel; Feb 11th, 2005 at 7:34 AM. |
|
|
|
|
|
|
#16 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Not that bit - it's the bit packed full of DLLs. If it's not there already, add:
extension=php_mysql.dll extension=php_mysql.dll And make sure your PHP directory (usually C:\PHP) is in the PATH environment variable. |
|
|
|
|
|
#17 |
|
Programmer
|
I found that line, is that the only line I need to remove the semicolon from?
I remove the semicolon from the beginning of that line, saved the .ini, replaced the one in the windows folder iwth it, and tried running MySQL, but with no avail. BTW, I'm not using a webserver (at least that I know of).
__________________
People say I'm crazy, but I have the heart of a little boy. It's in my desk at home. |
|
|
|
|
|
#18 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Sorry - you need to remove it from:
extension=php_mysqli.dll |
|
|
|
|
|
#19 | |
|
Programmer
|
I didn't find a mysqli.dll in the php.ini, so I added one, but it still gave me the error.
Also, if I do: "net start mysql", in prompt, it says the service was succesfully started, is that relevant at all? Quote:
My php.ini
__________________
People say I'm crazy, but I have the heart of a little boy. It's in my desk at home. Last edited by ArchAngel; Feb 12th, 2005 at 6:53 PM. |
|
|
|
|
|
|
#20 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Go into System -> Advanced -> Environment Variables (I think). In the System box, scroll down till you find PATH, and edit it so it has your PHP path at the end (paths are separated by semicolons).
Or you could just type at the DOS prompt: SET PATH=%PATH%;C:\PHP |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|