LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-19-2007, 01:53 AM   #1
alxbob
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
How can i change my Database server name from localhost to mysql?


Hi,

I am trying to figure how can i change the DBserver from localhost,which is the default,to mysql cause i am migrating a web site from one server to another and they had a different DBserver name.That means tha the site dont work The message i get is Unknown MySQL server host 'mysql' (1).I am using ubuntu.If anyone has any idea would be very helpful.

Tnx in advance for the help....
 
Old 10-19-2007, 02:06 AM   #2
alxbob
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I ve changed my /etc/hosts to 127.0.0.1 mysql and nothing changed.I ve also tryed to change my.cnf bind-address 127.0.0.1 or mysql and again db server name didnt change.I did restart the mysql service and it is still locahost......

Last edited by alxbob; 10-19-2007 at 02:30 AM.
 
  


Reply

Tags
mysql, server, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error connect to server at 'localhost' failed pete44904 Linux - Server 10 11-23-2012 06:08 AM
Connecting to a mysql server not on localhost kornfan2007 Linux - Newbie 10 07-18-2007 07:43 AM
MySQL won't change database directory techker Linux - Software 2 10-04-2006 01:11 PM
Sarge mysql-server Access denied for user: root@localhost infinity432 Linux - Software 2 05-18-2005 11:42 PM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 02:43 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration