![]() |
|
|
|
|
|||||||
| BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley. |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
||||
|
mysqld
Hello
I installed mysql41 this is the end of the installation Quote:
Quote:
I verify that the dir mysql existed under /var/db, but it doesn't so naively I created it and launch again the mysqld but each time i have the same error message. If someone know something about it he is welcoming Thanks in advance |
| Forum Sponsor | ||
|
|
|
|||
|
You really don't need to call /usr/local/libexec/mysqld directly.
see man mysqld_safe(1) you also need to run /usr/local/bin/mysql_install_db to install the initial db file structure. in order to start mysqld for the first time, I did: # /usr/local/bin/mysqld_safe --user=mysql --dbdir=/path/to/my/db then secured the initial accounts, etc, etc, etc. This stuff is all covered in the MySQL manual, which should be installed on your system in several formats in: /usr/local/share/doc/mysql Good luck! |
|
||||
|
YES :P
I found an answer at this url http://sunsite.mff.cuni.cz/MIRRORS/f...ng_server.html Posted by davidhj@mail.com on Tuesday January 29 2002, @8:30am [Delete] [Edit] If your error log file has something like: Can't find file: './mysql/host.frm' (errno: 13) , and you've tried setting --datadir=/path/to/my/data/directory but you still get the same error, it may be because the databases installed in the mysql data directory (usually /var/lib/mysql) are not owned by the mysql daemon, but by the user who ran mysql_install_db. chown them to mysql and chgrp them to the appropriate group e.g. chown -R mysql /var/lib/mysql/mysql chgrp -R daemons /var/lib/mysql/mysql And now the mysqld daeomn run the content of the logfile is Code:
050505 15:40:03 mysqld started 050505 15:40:04 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 050505 15:40:04 InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 43634. InnoDB: Doing recovery: scanned up to log sequence number 0 43634 050505 15:40:04 InnoDB: Flushing modified pages from the buffer pool... 050505 15:40:04 InnoDB: Started; log sequence number 0 43634 /usr/local/libexec/mysqld: ready for connections. Version: '4.1.11' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.1.11_1 ~ |
|
||||
|
Hello, I have the problem that mysql wont start at boot.
First, even after the install of mysql41-server ports there was no /usr/local/etc/rc.d/mysql-server.sh So Naevely I copy the /usr/ports/database/mysql41-server/files/mysql-server.in.sh at the usual place /usr/local/etc/rc.d/, then I wrote mysql_enable="YES" in the rc.conf. The result is nothing, I'm still having to start mysql manually by /usr/local/bin/mysqld_safe Does some one know something about it Thanks in advance I install from scratch all the installation, the mysqld-server is at the right place and now it's run well Special thanks to Jolko for his help this topic can be close Last edited by SoulCoder; 05-11-2005 at 10:11 AM. |
||||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix daemon process find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script |