Jump to content

Recommended Posts

Posted

OK, from my thread in Web Development I managed to get IIS6 and PHP working.

Just trying MySQL now and when it installs it gives an error saying it can't connect to root@localhost on post 3306.

I've added the port to exceptions on Windows firewall but the firewall is actually turned off. At the bottom of the firewall it says "Managed by non-domain settings". I guess there is another firewall operating. I'm using Symantec Corperate but that is just the AntiVirus.

Posted

Yeah thats the problem.

Removed MySQL and started again. WHen it comes to setting password, if needs the current root password which I put in, but then I want the new one to be blank but it doesn't allow it. Is there a way to remove password totally ?

Posted

Why would you want the root password to be blank?

It really should be secure the root password.

 

As for your question i am not too sure. You could download the mysql admin tools. I use these quite a lot since i am a DB newb.

 

Works most of the time for me.

Posted

Thanks Tom.

Got to going now with no errors on installation - can connect via admintools to database.

Just struggling with Joomla setup now as it says there is no sql !!

Posted

PHPinfo says nothing about mysql - screen below.

 

This is mysql section of php.ini

 

[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 =3306

 

; 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 =localhost

 

; Default user for mysql_connect() (doesn't apply in safe mode).

mysql.default_user =root

 

; 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 seconds) 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

phpinfo.JPG

Posted

In the php.ini there should be an extensions section. In this section there is a long list of all the extensions php can use. most if not all are commented out. MySQL needs to be uncommented by removing the semi colon from the front of the line that reads ;mysql.dll i think it is.

 

I may be barking up the wrong tree entirely though as it has been years since i did this stuff on a Windows box. You may also need to make sure that the extension is indeed there.

Picture 1.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...