Professional Web Applications Themes

Installation on Fedora 4 - MySQL

I've downloaded and run the rpm's for MySQL 5.019, both client and server. Now when I type mysql start at a command prompt, I get "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Where do I go from here? I'm a linux newbie, btw. Scott...

  1. #1

    Default Installation on Fedora 4

    I've downloaded and run the rpm's for MySQL 5.019, both client and
    server. Now when I type mysql start at a command prompt, I get "Can't
    connect to local MySQL server through socket
    '/var/lib/mysql/mysql.sock' (2)

    Where do I go from here? I'm a linux newbie, btw.

    Scott

    Scott Guest

  2. #2

    Default Re: Installation on Fedora 4

    "Scott" <nospamnospam> wrote in message
    news:1142961765.8266.6.camellocalhost.localdomain ...
    > I've downloaded and run the rpm's for MySQL 5.019, both client and
    > server. Now when I type mysql start at a command prompt, I get "Can't
    > connect to local MySQL server through socket
    > '/var/lib/mysql/mysql.sock' (2)
    >
    > Where do I go from here? I'm a linux newbie, btw.
    I'd guess that you installed the MySQL-Server RPM, but you didn't start it.
    The RPM should have set things up for you so that you can now use the
    following command to start the MySQL server:

    # /etc/init.d/mysql start

    See the following web pages for more information on starting the MySQL
    server:
    [url]http://dev.mysql.com/doc/refman/5.0/en/mysql-server.html[/url]
    [url]http://dev.mysql.com/doc/refman/5.0/en/mysqld-safe.html[/url]

    Regards,
    Bill K.


    Bill Karwin Guest

  3. #3

    Default Re: Installation on Fedora 4

    On Tue, 2006-03-21 at 10:04 -0800, Bill Karwin wrote:
    > "Scott" <nospamnospam> wrote in message
    > news:1142961765.8266.6.camellocalhost.localdomain ...
    > > I've downloaded and run the rpm's for MySQL 5.019, both client and
    > > server. Now when I type mysql start at a command prompt, I get "Can't
    > > connect to local MySQL server through socket
    > > '/var/lib/mysql/mysql.sock' (2)
    > >
    > > Where do I go from here? I'm a linux newbie, btw.
    >
    > I'd guess that you installed the MySQL-Server RPM, but you didn't start it.
    > The RPM should have set things up for you so that you can now use the
    > following command to start the MySQL server:
    >
    > # /etc/init.d/mysql start
    >
    > See the following web pages for more information on starting the MySQL
    > server:
    > [url]http://dev.mysql.com/doc/refman/5.0/en/mysql-server.html[/url]
    > [url]http://dev.mysql.com/doc/refman/5.0/en/mysqld-safe.html[/url]
    >
    > Regards,
    > Bill K.
    >
    >
    Bill,

    Thank you for the additional info. The command you suggested gave the
    following error:
    Starting MySQLCouldn't find MySQL manager or server [FAILED]

    I tried using the --basedir option as well, but with no luck.

    I'd be willing to remove all MySql installations and start with a clean
    slate, if someone would get me started in that direction.

    Scott

    Scott Guest

  4. #4

    Default Re: Installation on Fedora 4

    "Scott" <nospamnospam> wrote in message
    news:1142968573.8266.49.camellocalhost.localdomai n...
    > Thank you for the additional info. The command you suggested gave the
    > following error:
    > Starting MySQLCouldn't find MySQL manager or server [FAILED]
    First, make sure you are not running SElinux (security enhancements),
    because MySQL won't run with SElinux enabled. See
    [url]http://bugs.mysql.com/bug.php?id=12676[/url]. You can turn off SElinux with this
    command at a root shell prompt:

    # setenforce 0

    See this following bug logs:
    "mysql 5.0 will not start on fedora core 4":
    [url]http://bugs.mysql.com/bug.php?id=15104[/url]
    "/etc/init.d/mysql script doesn't work under fedora core 4"
    [url]http://bugs.mysql.com/bug.php?id=14457[/url]

    Fedora Core 4 comes with MySQL 4.0 if I recall correctly. The RPM for MySQL
    5.0 puts some files in different places than the corresponding files reside
    in the FC4 installation of MySQL 4.0. So the /etc/init.d/mysql file or the
    /etc/my.cnf file contain settings that direct the software to look for its
    datadir in the wrong place.

    Apparently the installation of MySQL 5.0 does not replace the
    /etc/init.d/mysql script or the /etc/my.cnf file. That's okay -- it's
    traditional not to overwrite existing config files during an installation,
    because the user might have some settings they don't want to lose.

    So you could remove the files /etc/init.d/mysql and /etc/my.cnf that were
    left over from the previous installation of MySQL, then reinstall MySQL 5.0
    to get the new copies of those files, containing the settings that are
    correct for MySQL 5.0.

    Regards,
    Bill K.


    Bill Karwin Guest

  5. #5

    Default Re: Installation on Fedora 4

    Thanks, Bill. That seemed to do the trick.

    Now, on to PHP...

    On Tue, 2006-03-21 at 13:48 -0800, Bill Karwin wrote:
    > "Scott" <nospamnospam> wrote in message
    > news:1142968573.8266.49.camellocalhost.localdomai n...
    > > Thank you for the additional info. The command you suggested gave the
    > > following error:
    > > Starting MySQLCouldn't find MySQL manager or server [FAILED]
    >
    > First, make sure you are not running SElinux (security enhancements),
    > because MySQL won't run with SElinux enabled. See
    > [url]http://bugs.mysql.com/bug.php?id=12676[/url]. You can turn off SElinux with this
    > command at a root shell prompt:
    >
    > # setenforce 0
    >
    > See this following bug logs:
    > "mysql 5.0 will not start on fedora core 4":
    > [url]http://bugs.mysql.com/bug.php?id=15104[/url]
    > "/etc/init.d/mysql script doesn't work under fedora core 4"
    > [url]http://bugs.mysql.com/bug.php?id=14457[/url]
    >
    > Fedora Core 4 comes with MySQL 4.0 if I recall correctly. The RPM for MySQL
    > 5.0 puts some files in different places than the corresponding files reside
    > in the FC4 installation of MySQL 4.0. So the /etc/init.d/mysql file or the
    > /etc/my.cnf file contain settings that direct the software to look for its
    > datadir in the wrong place.
    >
    > Apparently the installation of MySQL 5.0 does not replace the
    > /etc/init.d/mysql script or the /etc/my.cnf file. That's okay -- it's
    > traditional not to overwrite existing config files during an installation,
    > because the user might have some settings they don't want to lose.
    >
    > So you could remove the files /etc/init.d/mysql and /etc/my.cnf that were
    > left over from the previous installation of MySQL, then reinstall MySQL 5.0
    > to get the new copies of those files, containing the settings that are
    > correct for MySQL 5.0.
    >
    > Regards,
    > Bill K.
    >
    >
    Scott Guest

Similar Threads

  1. FMS 2 on Fedora Core 5
    By RajanYadav in forum Macromedia Flash Flashcom
    Replies: 4
    Last Post: February 18th, 10:27 PM
  2. Installation problem on Fedora core 4..
    By artjesus in forum Macromedia Flash Flashcom
    Replies: 2
    Last Post: December 7th, 07:14 PM
  3. ColdFusion MX7 on Fedora 3
    By cab in forum Coldfusion - Getting Started
    Replies: 13
    Last Post: August 16th, 12:51 PM
  4. ColdFusion MX7 on Fedora 4
    By cab in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: August 10th, 10:02 AM
  5. Installation script for Linux fails with Fedora 3
    By overbyte@earthlink.net in forum Macromedia Flash Player
    Replies: 0
    Last Post: August 7th, 08:18 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139