Change mysql "datadir"

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Change mysql "datadir"

Postby Funkeroxp » 20. June 2006 22:51

I like change the default directory "C:../xampp/mysql/data" and move to "D:/mysql/data"
I have changed the configuration file "My.cnf" in C:/WINDOWS and copy this file in "../xampp/mysql/bin" too but xampp report error.
I copy the directory "C:../xampp/mysql/data" to "D:/mysql/data" but it the same error
Can you help me?
Funkeroxp
 
Posts: 5
Joined: 20. June 2006 22:35

Postby Wiedmann » 20. June 2006 23:35

but xampp report error.
..
but it the same error

Cool... Should we guess which error messsage you have?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Funkeroxp » 21. June 2006 15:30

PhpAdmin:

"#

Error: 2003 (CR_CONN_HOST_ERROR)

Message: Can't connect to MySQL server on '%s' (%d)"


When I move "C:..mysql/data" to "D:...mysql/data".
Funkeroxp
 
Posts: 5
Joined: 20. June 2006 22:35

Postby Wiedmann » 21. June 2006 15:37

Well, this is a PHP error message...

You have no error message during the start of MySQL with "mysql_start.bat"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Funkeroxp » 21. June 2006 16:14

I have the XAMPP Control Panel. when I push the botton to start MySql and light green say "Running" but a few moment, then light green off.

If I choose datadir mysql default "C:...\xampp\mysql\data" , I havent got any problem.

The problem is when I choose datadir mysql in the unit "D:\mysql"
Funkeroxp
 
Posts: 5
Joined: 20. June 2006 22:35

Postby Funkeroxp » 21. June 2006 16:44

I try with another distributions how "easyphp" and "Wamp" and the error is the same.

Example:

Code: Select all
[wampmysqld]

# The TCP/IP Port the MySQL Server will listen on
port=3306


#Path to installation directory. All paths are usually resolved relative to this.
basedir=c:/wamp/mysql

#log file
log-error=c:/wamp/logs/mysql_error.log

#Path to the database root
datadir=d:/mysql/data


but the database not connected
Funkeroxp
 
Posts: 5
Joined: 20. June 2006 22:35

Postby Funkeroxp » 21. June 2006 16:45

Sorry this code is the "my.ini"
Have I change another thing?
Thanks
Funkeroxp
 
Posts: 5
Joined: 20. June 2006 22:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests