PDA

Visualizza la versione completa : [mySQL]Parte e si disattiva subito


TRC
16-08-2004, 00:08
:ciauz:
Ho installato mysql 3.23 su suSE 9.1. seguendo le istruzioni su feephp, ma quando do il comando di safe_mysqld --user=mysql
mi restituisce :

Starting mysqld daemon with databases from /usr/local/mysql_3.23.58/data
040815 23:53:44 mysqld ended
Perch?
Come lo risolvo? Grazie

Ratatuia
16-08-2004, 00:24
google tuo amico! :fighet:
http://forums.devshed.com/archive/t-58788

http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=Starting+mysqld+daemon+with+databases+from+mysql d+ended&btnG=Search

TRC
16-08-2004, 00:31
040815 23:35:09 mysqld started
040815 23:35:09 Can't start server: Bind on TCP/IP port: Address already in use
040815 23:35:09 Do you already have another mysqld server running on port: 3306 ?
040815 23:35:09 Aborting

Ho attivo solo il server apache!

Ratatuia
16-08-2004, 00:47
hai gi dato mysql_install_db?

TRC
16-08-2004, 00:53
mi ice che prima devo fare make e make install, ma questi comandi non partono: non mi riconosce 'install' e mi dice qlcs tipo nn c' target o qlcs del genere. cmq domani riprovo, ti faccioi sapere.
Grazie.
Notte

Ratatuia
16-08-2004, 01:03
Originariamente inviato da TRC
mi ice che prima devo fare make e make install, ma questi comandi non partono: non mi riconosce 'install' e mi dice qlcs tipo nn c' target o qlcs del genere. cmq domani riprovo, ti faccioi sapere.
Grazie.
Notte


quindi lo stai compilando?
hai scaricato i sorgenti, giusto?

TRC
16-08-2004, 10:10
1. Ho scaricato i sorgenti mysql-3.23.58-pc-linux-i686.tar.gz
(N.B.: Apache 1.3 gi installato e attivo)
2. Dopo avre decompresso il file da shell do il comando
./configure --prefix=/usr/local/mysql_3.23.58;
3. Mi restituisce

NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
040816 9:56:08 ./bin/mysqld: Shutdown Complete


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 !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h linux password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests

Please report any problems with the ./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 https://order.mysql.com

Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
linux:/usr/local/mysql_3.23.58 # Starting mysqld daemon with databases from /usr/local/mysql_3.23.58/data
040816 09:56:08 mysqld ended

4. E gi qui mi sembra ci siano un po' di cose che non vanno. Infatti il log degli errori d:

040816 09:56:08 mysqld started
040816 9:56:08 Can't start server: Bind on TCP/IP port: Address already in use
040816 9:56:08 Do you already have another mysqld server running on port: 3306 ?
040816 9:56:08 Aborting

040816 9:56:08 /usr/local/mysql_3.23.58/bin/mysqld: Shutdown Complete

040816 09:56:08 mysqld ended

io non ho fatto nulla da quando ho acceso il computer. Se un altro server mySQL partito lo ha fatto in automatico.

Ma se un altro mySQL server gi attivo perch facendo mysqladmin ping ho

/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists ????

5. Provo make / make install:

linux:/usr/local/mysql_3.23.58 # make
make: *** No targets specified and no makefile found. Stop.
linux:/usr/local/mysql_3.23.58 # make install
make: *** No rule to make target `install'. Stop.
linux:/usr/local/mysql_3.23.58 #

6. Provo a fare mysql_install_db; mi restituisce

Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
Accidenti, mi ha appena detto che non c' nulla da configurare, nulla da installare :dh: :dh:

Grazie, per la pazienza. Scusa, ma io nn so proprio che fare!
CIAO

TRC
16-08-2004, 11:32
Nell'attesa ho provato a compilare php:


linux:/usr/local/src/php-4.3.8 # ./configure --prefix=/usr/local/php_x.y.z \
> --with-apxs=/usr/local/apache/bin/apxs \
> --with-mysql \
> --with-config-file-path=/usr/local/apache/conf
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
:dh: :dh: :dh: :dh: :dh: :dh: :dh: :dh:

Ratatuia
16-08-2004, 11:49
ma che distro hai? cmq da quanto dice il testo di mysql una distribuzione binaria, quindi nn la devi compilare...

per il php invece manca qualche pacchetto...che distro hai?

TRC
16-08-2004, 17:38
suSE 9.1 con KDE.
In definitiva che devo fare con mysql e php?

Loading