The never ending game of MySQL :( - Now something weird happnes


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers The never ending game of MySQL :( - Now something weird happnes
# 1  
Old 01-05-2008
The never ending game of MySQL :( - Now something weird happnes

I had mysql installed on my unix system but for some reason it wasn't starting up when I changed the datadir in my.cnf located in etc. It was saying that there's some permission problem. But, I double checked everything and everything looked fine. I wanted to install the latest version of mysql, so I removed the existing version.

Now I just downloaded the server, client and shared community libraries of mysql and installed them using rpm. Now, I don't find a my.cnf file nor does this command: "/etc/init.d/mysqld start" work. And here's the messages:

Code:
root# /etc/init.d/mysqld status
bash: /etc/init.d/mysqld: No such file or directory
root# mysqld restart
bash: mysqld: command not found

But when I type mysql it is running and gives me a prompt too and as far as I remember, it shows me the databases in /var/lib/mysql. Can someone help me out please?

Last edited by Legend986; 01-05-2008 at 04:56 AM..
# 2  
Old 01-05-2008
If /etc/init.d/mysqld cannot be found, it's not registered as a service.

Take a look at something like this to see if this helps:

Code:
$ chkconfig --add mysqld

# 3  
Old 01-05-2008
Thanks but it says chkconfig command not found... When I do a man on the command, it shows some help but still it says that the command is not found... Also when I'm trying to run a php file that involves connecting to a database, it says:

Code:
PHP Fatal error:  Call to undefined function mysql_connect()

As far as the information that I found out goes, I have to install php-mysql extension or something. My PHP version is 5.0.4 and MySQL is 5.1.22 and I don't know where to and how to install this extension... Smilie

Last edited by Legend986; 01-05-2008 at 05:29 AM..
# 4  
Old 01-05-2008
Not posting the details of your OS and distribution version does not make helping any easier Smilie
# 5  
Old 01-05-2008
I am so sorry. When I typed uname -a, this is what I get:

Code:
Linux  2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:16:33 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If loop not ending

Hi, The first if loop in the script not ending and going to infinite loop. #!/usr/bin/ksh set -vx lc=1 st_date=$(date "+%Y%m%d") LOGFILE=/home/infa_shared/OM_ftp_transfer.log.$st_date file="/home/infa_shared/OM_WF.log.$st_date" while ]; do if ] then sleep 15 let lc=lc+1 print... (4 Replies)
Discussion started by: nag_sathi
4 Replies

2. UNIX and Linux Applications

MySQL Daemon failed to start - no mysql.sock file

After doing a yum install mysql mysql-server on Fedora 14 I wasn't able to fully install the packages correctly. It installed MySQL 5.1. I was getting the following error when running the: mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)... (3 Replies)
Discussion started by: jastanle84
3 Replies

3. UNIX for Advanced & Expert Users

mysql would not start: missing mysql.sock

I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql: #... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

4. Programming

executables ending with *

Hi All, I m very new to unix. I have a basic doubt .. In unix I m seeing that there is a * at the end of by executable name (exe1*).. Wht is the significance of that Thanks a lot in advance (2 Replies)
Discussion started by: binums
2 Replies

5. UNIX for Advanced & Expert Users

MySQL problem >> missing mysql.sock

MySQL on my server is down.... I figured out that the mysqld process isn't running. When I try to run it, it says it can't find mysql.sock Any suggestions? Here's what I can't do: can't be root don't have physical access (do stuff via SSH) reinstall MySQL (need to keep the current MySQL... (8 Replies)
Discussion started by: _hp_
8 Replies

6. UNIX for Dummies Questions & Answers

Ending Mail

hello, I a problem. I would like write script in True64 Unix.see below. last testerkl | head > mailfile.asc wolteru < mailfile.asc With the "last" command I get a list when testerkl logged on. And I would like to send this to a user. But how can I write in a "ctrl.-d" and "ctrl.-c" that... (2 Replies)
Discussion started by: Peterh
2 Replies
Login or Register to Ask a Question