Databases :: MySql :: problems with installing mysql on Linux cluster |
|||
| By: Squibi |
Date: 30/04/2003 00:00:00 |
Points: 20 | Status: Answered Quality : Excellent |
|
I downloaded the MySql 3.23 (Linux (x86, libc6))for Linux from the mysql.com website and want to install it in my own directory (such as /users/people/dong, which is not /usr/local). Since there is a previous version of mysql installed on /usr/local, when I tried to do "groupadd mysql" and "usradd mysql...", it always give me the message that "group mysql already exists" and "user mysql already exists". Then I tried to run the command: ./scripts/mysql_install_db. And it gave me the error message: " ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13) To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system" I don't know whether this error is because of the unsuccessul groupadd and useradd, or because I didn't do "su - root" (I don't have the permission as a root, I only have my own account), or because of the different path from the default one(/usr/local)? If it's the problem of groupadd and user add, what shall I do? If it's the problem of installation path, I guess I need to download the source distribution instead. The third question: Since there is previous version mysql on Linux cluster, do I need to select another port number and socket number for my mysql? From some documents, they said it is necessary. I just want to get the confirmation. Thank you! |
|||
| By: VGR | Date: 01/05/2003 18:18:00 | Type : Answer |
|
| 0) stop mysqld (ps -aux | grep mysqld, kill -9 ... ) 1) add manually user "mysql" in group "mysql" (/etc/groups etc) 2) manually modify access rights on the datadir/* recursively in 770 3) restart mysqld |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








