473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Starting server problems

Hi, I appologise if I'm not posting this to the correct group, but I'm
having problems starting MySQL server. I need it in order to post a
websurvey for a research project I'm doing for a college computer ethics
class.

Well here is the output several commands, from netstat -a I can see that
MySQL is listening, but when I try to start the server I get a port error.
I'm running SUSE 9.1 and I searched all over the web for info on this error,
but nothing I found worked. I've been using Linux for a while now, but I'm a
newbie when it comes to MySQL. Any help would be greatly appreciated. Here's
the output and the error at the end.

zeedan@linux:~> su root

Password:

linux:/home/zeedan # cd /

linux:/ # mysqladmin -u root -p version proc

Enter password:

mysqladmin Ver 8.40 Distrib 4.0.18, for suse-linux on i686

Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

and you are welcome to modify and redistribute it under the GPL license

Server version 4.0.18-Max

Protocol version 10

Connection Localhost via UNIX socket

UNIX socket /var/lib/mysql/mysql.sock

Uptime: 11 hours 10 min 51 sec

Threads: 1 Questions: 25 Slow queries: 0 Opens: 12 Flush tables: 1 Open
tables: 6 Queries per second avg: 0.001

+----+------+-----------+----+---------+------+-------+------------------+

| Id | User | Host | db | Command | Time | State | Info |

+----+------+-----------+----+---------+------+-------+------------------+

| 11 | root | localhost | | Query | 0 | | show processlist |

+----+------+-----------+----+---------+------+-------+------------------+

linux:/ # msql -u root -p mysql

bash: msql: command not found

linux:/ # mysql -u root -p mysql

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 12 to server version: 4.0.18-Max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> status

--------------

mysql Ver 12.22 Distrib 4.0.18, for suse-linux (i686)

Connection id: 12

Current database: mysql

Current user: root@localhost

SSL: Not in use

Current pager: less

Using outfile: ''

Server version: 4.0.18-Max

Protocol version: 10

Connection: Localhost via UNIX socket

Client characterset: latin1

Server characterset: latin1

UNIX socket: /var/lib/mysql/mysql.sock

Uptime: 11 hours 12 min 29 sec

Threads: 1 Questions: 29 Slow queries: 0 Opens: 12 Flush tables: 1 Open
tables: 6 Queries per second avg: 0.001

Note that you are running in safe_update_mode:

UPDATEs and DELETEs that don't use a key in the WHERE clause are not
allowed.

(One can force an UPDATE/DELETE by adding LIMIT # at the end of the
command.)

SELECT has an automatic 'LIMIT 1000' if LIMIT is not used.

Max number of examined row combination in a join is set to: 1000000

--------------

linux:/ # netstat -a

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 *:blackjack *:* LISTEN

tcp 0 0 *:nfs *:* LISTEN

tcp 0 0 *:838 *:* LISTEN

tcp 0 0 *:mysql *:* LISTEN

tcp 0 0 localhost:netbios-ssn *:* LISTEN

tcp 0 0 192.168.0.1:netbios-ssn *:* LISTEN

tcp 0 0 *:sunrpc *:* LISTEN

tcp 0 0 192.168.0.196:www-http *:* LISTEN

tcp 0 0 *:ipp *:* LISTEN

linux:/ # /usr/sbin/mysqld restart

041120 13:01:20 Can't start server: Bind on TCP/IP port: Address already in
use

041120 13:01:20 Do you already have another mysqld server running on port:
3306 ?

041120 13:01:20 Aborting

041120 13:01:20 /usr/sbin/mysqld: Shutdown Complete


Jul 20 '05 #1
3 4345
Sorry my correct email is ze*****@comcast.net

"zeedan" <no****@inmybox.com> wrote in message
news:y4********************@comcast.com...
Hi, I appologise if I'm not posting this to the correct group, but I'm
having problems starting MySQL server. I need it in order to post a
websurvey for a research project I'm doing for a college computer ethics
class.

Well here is the output several commands, from netstat -a I can see that
MySQL is listening, but when I try to start the server I get a port error.
I'm running SUSE 9.1 and I searched all over the web for info on this
error, but nothing I found worked. I've been using Linux for a while now,
but I'm a newbie when it comes to MySQL. Any help would be greatly
appreciated. Here's the output and the error at the end.

zeedan@linux:~> su root

Password:

linux:/home/zeedan # cd /

linux:/ # mysqladmin -u root -p version proc

Enter password:

mysqladmin Ver 8.40 Distrib 4.0.18, for suse-linux on i686

Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

and you are welcome to modify and redistribute it under the GPL license

Server version 4.0.18-Max

Protocol version 10

Connection Localhost via UNIX socket

UNIX socket /var/lib/mysql/mysql.sock

Uptime: 11 hours 10 min 51 sec

Threads: 1 Questions: 25 Slow queries: 0 Opens: 12 Flush tables: 1
Open tables: 6 Queries per second avg: 0.001

+----+------+-----------+----+---------+------+-------+------------------+

| Id | User | Host | db | Command | Time | State | Info |

+----+------+-----------+----+---------+------+-------+------------------+

| 11 | root | localhost | | Query | 0 | | show processlist |

+----+------+-----------+----+---------+------+-------+------------------+

linux:/ # msql -u root -p mysql

bash: msql: command not found

linux:/ # mysql -u root -p mysql

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 12 to server version: 4.0.18-Max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> status

--------------

mysql Ver 12.22 Distrib 4.0.18, for suse-linux (i686)

Connection id: 12

Current database: mysql

Current user: root@localhost

SSL: Not in use

Current pager: less

Using outfile: ''

Server version: 4.0.18-Max

Protocol version: 10

Connection: Localhost via UNIX socket

Client characterset: latin1

Server characterset: latin1

UNIX socket: /var/lib/mysql/mysql.sock

Uptime: 11 hours 12 min 29 sec

Threads: 1 Questions: 29 Slow queries: 0 Opens: 12 Flush tables: 1
Open tables: 6 Queries per second avg: 0.001

Note that you are running in safe_update_mode:

UPDATEs and DELETEs that don't use a key in the WHERE clause are not
allowed.

(One can force an UPDATE/DELETE by adding LIMIT # at the end of the
command.)

SELECT has an automatic 'LIMIT 1000' if LIMIT is not used.

Max number of examined row combination in a join is set to: 1000000

--------------

linux:/ # netstat -a

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 *:blackjack *:* LISTEN

tcp 0 0 *:nfs *:* LISTEN

tcp 0 0 *:838 *:* LISTEN

tcp 0 0 *:mysql *:* LISTEN

tcp 0 0 localhost:netbios-ssn *:* LISTEN

tcp 0 0 192.168.0.1:netbios-ssn *:* LISTEN

tcp 0 0 *:sunrpc *:* LISTEN

tcp 0 0 192.168.0.196:www-http *:* LISTEN

tcp 0 0 *:ipp *:* LISTEN

linux:/ # /usr/sbin/mysqld restart

041120 13:01:20 Can't start server: Bind on TCP/IP port: Address already
in use

041120 13:01:20 Do you already have another mysqld server running on
port: 3306 ?

041120 13:01:20 Aborting

041120 13:01:20 /usr/sbin/mysqld: Shutdown Complete


Jul 20 '05 #2
zeedan wrote:
linux:/ # /usr/sbin/mysqld restart
041120 13:01:20 Can't start server: Bind on TCP/IP port: Address already in
use
041120 13:01:20 Do you already have another mysqld server running on port:
3306 ?
041120 13:01:20 Aborting
041120 13:01:20 /usr/sbin/mysqld: Shutdown Complete


"restart" is not a valid option to mysqld. What's happening is that
mysqld is ignoring the restart argument, and it's simply trying to start
another instance of the mysql daemon process. Since there's already one
running, it conflict with the use of the port, and aborts. But the
original instance is still running.

Mysqld is usually started and stopped by a front-end script, which is
often kept in /etc/init.d/mysql (or some variation on that name).

Try: "/etc/init.d/mysql restart"

I have to ask, though, if mysqld is already running, why do you need to
restart it? I find I rarely need to restart mysqld, unless I've changed
some of its config parameters. Even restarting Apache doesn't generally
require restarting mysqld.

Regards,
Bill K.
Jul 20 '05 #3
Thanks for responding I must of been thinking it was similar to samba. I got
it working though I had to enable it in the runlevel editor. In Suse mysqld
is in /usr/sbin and the book I was reading said I had to start it before I
could configure it.

Thanks again,

Dan

"Bill Karwin" <bi**@karwin.com> wrote in message
news:cn********@enews1.newsguy.com...
zeedan wrote:
linux:/ # /usr/sbin/mysqld restart
041120 13:01:20 Can't start server: Bind on TCP/IP port: Address already
in use
041120 13:01:20 Do you already have another mysqld server running on
port: 3306 ?
041120 13:01:20 Aborting
041120 13:01:20 /usr/sbin/mysqld: Shutdown Complete


"restart" is not a valid option to mysqld. What's happening is that
mysqld is ignoring the restart argument, and it's simply trying to start
another instance of the mysql daemon process. Since there's already one
running, it conflict with the use of the port, and aborts. But the
original instance is still running.

Mysqld is usually started and stopped by a front-end script, which is
often kept in /etc/init.d/mysql (or some variation on that name).

Try: "/etc/init.d/mysql restart"

I have to ask, though, if mysqld is already running, why do you need to
restart it? I find I rarely need to restart mysqld, unless I've changed
some of its config parameters. Even restarting Apache doesn't generally
require restarting mysqld.

Regards,
Bill K.

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Peters | last post by:
For some weeks now, SQLServeragent hangs after I restart the computer. What could be a reason for this? I don't think I changed anything. The system protocol only says "SQLServeragent hung during...
0
by: Rafal Zurkowski | last post by:
Hello everybody, Maybe my question is very simple but I can't find answer for it. And without it I can't go on. I have installed SQL 2000 Personal edition on Windows 98. All the setup process ran...
2
by: zhengfish | last post by:
Hi,All, I try to install mysql-5.0.15 on RHEL3-U5. But It give me a error. MySQL-client-standard-5.0.15-0.rhel3.i386.rpm MySQL-devel-standard-5.0.15-0.rhel3.i386.rpm...
2
by: karl | last post by:
I have a windows service that kicks off a 'monitor' thread which in turn kicks off 4 additional threads. These 4 threads basically are listen on a designated socket and report back any errors...
2
by: banduraj | last post by:
I am working on starting and managing TCP connections manually. I build the IP headers and TCP packets manually and send them on my own. The problems I run into seems to be related to the Sockets....
1
by: Nusret Bajric | last post by:
Hello, I have a problem with starting a COM application from my ASP.NET application on the server machine. I get an error with a message permission denied during creation of COM object. If I...
8
by: Mike | last post by:
Inside a HttpHandler I'm trying to spawn an EXE (console app). Although it shows up in the process list, it doesn't seem to do anything. (And even if I specify ProcessWindowStyle.Normal, it doesn't...
4
by: Phil Mc | last post by:
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications),...
7
by: | last post by:
Hi to everyone! I have an Apache Webserver running on Win2000. I try to start a console application an the server though PHP, with the functions exec() or passthru() but it doesn't work. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.