Re: myqsl dummy needs help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-02-16 at 16:16 -0800, Rick Stevens wrote:

> Name calling won't solve anyone's problems, gang.  Let's try to keep
> this a bit more professional, shall we?
> 
> Now, to address the issue, /var/lib/mysql/mysql.sock is a FIFO (actually
> a named pipe), not an actual file and is created when mysqld starts up 
> and deleted when mysql shuts down.  When mysqld is running, it should
> appear as follows:
> 
> # ls -lZ mysql.sock
> srwxrwxrwx  mysql mysql unconfined_u:object_r:mysqld_var_run_t:s0 mysql.sock
> 
> If your /var/lib/mysql/mysql.sock is a regular file (which it would be
> if you used "touch" to create it), first delete the file and run
> "restorecon -v /var/lib/mysql" as root.  Then see if mysql will start
> up.  It may not, because if you "rm -rf /var/lib/mysql", then you also
> destroyed mysql's users, hosts and permissions database which it needs
> to manage things.  You should be able to recover them by running the
> following commands:
> 
> 	# mysql </usr/share/mysql/mysql_system_tables.sql
> 	# mysql </usr/share/mysql/mysql_system_tables_data.sql
> 	# mysql </usr/share/mysql/mysql_fix_privilege_tables.sql
> 
> Or "yum remove mysql*" and reinstall the packages that get removed.
----
entirely unnecessary Rick...

[root@lin-workstation httpd]# rm -fr /var/lib/mysql/*              
You have new mail in /var/spool/mail/root                          
[root@lin-workstation httpd]# service mysqld start                 
Initializing MySQL database:  Installing MySQL system tables...    
090216 17:52:30 [Warning] option 'max_join_size': unsigned value
18446744073709551615 adjusted to 4294967295
090216 17:52:30 [Warning] option 'max_join_size': unsigned value
18446744073709551615 adjusted to 4294967295
OK                                                                                                          
Filling help
tables...                                                                                      
090216 17:52:31 [Warning] option 'max_join_size': unsigned value
18446744073709551615 adjusted to 4294967295
090216 17:52:31 [Warning] option 'max_join_size': unsigned value
18446744073709551615 adjusted to 4294967295
OK                                                                                                          

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h lin-workstation.azapple.com password
'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
                                                           [  OK  ]
Starting MySQL:                                            [  OK  ]
[root@lin-workstation httpd]# mysqladmin -u root password 'test'
[root@lin-workstation httpd]# mysql -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.67 Source distribution

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

mysql> \q
Bye

Craig

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux