MYSQL
Hi friends!
I m using fedora...while installing MYSQL on the following step... Create mysql config file: cp support-files/my-medium.cnf /opt/var/my.cnf Is it necessary to copy this file? When I try to copy this I received this message: [root@localhost support-files]# cp -p my-medium.cnf /opt/var/my.cnf cp: cannot create regular file `/opt/var/my.cnf': No such file or directory Please guide me. |
Are you sure /opt/var directory exists?
|
Quote:
|
Haven't installed from source, but MySQL reference manual says
Quote:
|
But why aren't you using yum or mysql rpm for installation?
|
Quote:
|
Quote:
yum install mysql mysql-server apache2 php will let install LAMP |
Problem with MySQL
While I try to start mysql it says FAILED.Cant connect to local MYSQL server through socket mysql.sock
then I did this to find mysql.sock [root@localhost lib]# locate mysql.sock /var/lib/mysql/mysql.sock [root@localhost lib]# cd / [root@localhost /]# cd /var [root@localhost var]# cd lib [root@localhost lib]# cd mysql [root@localhost mysql]# ls Ali ib_logfile0 localhost.localdomain.err mysql ibdata1 ib_logfile1 test Why mysql.sock is not listed ? Where is it? |
First of all, locate uses an index of your filesystem that is updated (usually via a cronjob) with updatedb. So /var/lib/mysql.sock did exist last time updatedb was run, which is why locate is finding it. But this doesn't mean that it exists now.
Second, you can just type cd /var/lib/mysql/ instead of cd'ing into each directory. Finally, as far as mysql.sock, just restart your mysql service. Depending on your linux distro, you can do usually do this with one of the following commands: 1) /etc/init.d/mysqld restart OR 1) /etc/rc.d/init.d/mysqld restart If you tell us which distro you are using, we can tell you the exact command. --jrtayloriv |
Quote:
have you recently upgraded it or made any changes?? This error should give you the exact path for the mysql.sock - Code:
mysqladmin status above is an example on my server when i upgraded, because the new version runs from somewhere else, so i would need to specify Code:
--socket /path/to/mysql.sock Code:
root 5039 0.0 0.1 4548 1296 ? S Jul06 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid |
Thanks I have solved that issue..I have installed Wordpress and configured its wp-config-sample.pho file and renamed it to wp-config.php now I want to load WordPress directory files on my http:/192.168.129.108:port/ .... Sould I place all files of Wordpress's directory to htdocs? I m using fedora
|
Quote:
a thumbs up.... |
Quote:
taken from Code:
codex.wordpress.org/Installing_WordPress Code:
Famous 5-Minute Install |
Ok I have copy all files in htdocs directory...but now I m facing this problem
Warning: require_once() [function.require-once]: line number 76 and wp-config.php on line 76 is : require_once(Mansoor/apache/htdocs/ '/wp-settings.php'); did I put somthing wrong in it? |
Try this instead:
Code:
require_once(Mansoor/apache/htdocs/wp-settings.php); |
All times are GMT -5. The time now is 09:37 AM. |