Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I have a problem with MYSQL, I have USED YUM to install the following packages; * mysql-VERSION.i386.rpm (Required) * mysql-server-VERSION.i386.rpm (Required) * mysql-devel-VERSION.i386.rpm * php-mysql-VERSION.i386.rpm NOW im new to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    8

    Problem With SELinux (firewall) and MSQL


    Hi I have a problem with MYSQL,

    I have USED YUM to install the following packages;
    * mysql-VERSION.i386.rpm (Required)
    * mysql-server-VERSION.i386.rpm (Required)
    * mysql-devel-VERSION.i386.rpm
    * php-mysql-VERSION.i386.rpm

    NOW im new to this so i wanna setup a mysql database on my computer so
    the next thing I do is run the following command.

    [root@localhost bin]# /etc/rc.d/init.d/mysqld start
    Timeout error occurred trying to start MySQL Daemon.
    Starting MySQL: [FAILED]

    On the desktop i get a message saying SELinux

    SELinux is preventing mysqld_safe (mysqld_safe_t) "search" to ./lib (var_lib_t).


    Can anyone help!?

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    SELinux is pretty tight on what's allowed and what's not. Personally, I just get rid of it as soon as I can after installing Fedora.
    If you wanna keep it active, though, you'll need to look into some documentation for making allowances in the apps or programs that are allowed to connect. I did find this How-To. Hope it helps.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Posts
    8
    Ok I may have got round that problem now simply by issuing another command!

    [root@localhost edb3]# /usr/bin/mysql_install_db

    I am then recommend to run

    /usr/bin/mysql_secure_installation

    when i do this i get the following error.

    Enter current password for root (enter for none):
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •