Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem s instalacijom mysql-a

[es] :: Linux aplikacije :: Problem s instalacijom mysql-a

[ Pregleda: 2123 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

elizabetaz

Član broj: 284678
Poruke: 45
*.tel.net.ba.



Profil

icon Problem s instalacijom mysql-a11.05.2011. u 15:06 - pre 157 meseci
Hello!!

Imam problem pri instalaciji mysql-a.

Inače imam RedHat 5.3, a instaliram iz source koda mysql-4.1.16. Prije sam imala instalaciju mysql-4.0.26.
Sad radim:

mysql-4.1.16

mysql-4.1.16]# ./configure --prefix=/usr/local/mysql --with-charset=latin2 --with-unix-socket-path=/tmp/mysql.sock --localstatedir=/usr/mysql

make

mysql-4.1.16]# make install

mysql-4.1.16]# cp support-files/my-medium.cnf /etc/my.cnf

mysql-4.1.16]# cd /usr/local/mysql

mysql]# chown -R root .

mysql]# chgrp -R mysql .

mysql]# bin/mysql_install_db --user=mysql

Javlja se sljedeća greška:

Installing all prepared tables
Fill help tables
ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
110511 15:43:20 [ERROR] Aborting

110511 15:43:20 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete


WARNING: HELP FILES ARE NOT COMPLETELY INSTALLED!
The "HELP" command might not work properly


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 !
To do so, start the server, then issue the following commands:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h ls186.tel.net.ba password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/mysql/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 /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

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

Please report any problems with the /usr/local/mysql/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

Probala sam maknuti prethodnu instalaciju, ali opet ista greška:-(

Ima li neka naredba za trajno micanje stare verzije mysql-a?



 
Odgovor na temu

combuster
Ivan Bulatovic
Kraljevo

Član broj: 151351
Poruke: 4563
*.dynamic.isp.telekom.rs.

Sajt: www.linuxsrbija.org


+104 Profil

icon Re: Problem s instalacijom mysql-a11.05.2011. u 23:08 - pre 157 meseci
make uninstall iz source direktorijuma. Mada moras rucno da skines konfiguracione fajlove (/etc/my.conf).
make love - !war
 
Odgovor na temu

elizabetaz

Član broj: 284678
Poruke: 45
*.tel.net.ba.



Profil

icon Re: Problem s instalacijom mysql-a12.05.2011. u 07:07 - pre 157 meseci
Nažalost već sam izbrisala source bez da sam to uradila.

A /etc/my.cnf sam pregazila.
 
Odgovor na temu

elizabetaz

Član broj: 284678
Poruke: 45
*.tel.net.ba.



Profil

icon Re: Problem s instalacijom mysql-a12.05.2011. u 09:52 - pre 157 meseci
On je čak instalirao tablice i digne se bez problema.

Ali problem je npr. kad pozovem

./mysqladmin -version
./mysqladmin: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory


iako postoje ti library pod /usr/local/mysql/lib/mysql ....
 
Odgovor na temu

Miroslav Strugarevic

Član broj: 5038
Poruke: 2689



+68 Profil

icon Re: Problem s instalacijom mysql-a12.05.2011. u 12:36 - pre 157 meseci
Probaj da dodas putanju do so fajlova u /etc/ld.so.conf i nakon toga uradi jedan ldconfig. Javi da li je pomoglo.



# echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf

# ldconfig
 
Odgovor na temu

elizabetaz

Član broj: 284678
Poruke: 45
*.tel.net.ba.



Profil

icon Re: Problem s instalacijom mysql-a12.05.2011. u 14:26 - pre 157 meseci
Urađeno ldconfig.

Sad nema greške.

Hvala puno!!
 
Odgovor na temu

combuster
Ivan Bulatovic
Kraljevo

Član broj: 151351
Poruke: 4563
*.dynamic.isp.telekom.rs.

Sajt: www.linuxsrbija.org


+104 Profil

icon Re: Problem s instalacijom mysql-a12.05.2011. u 21:40 - pre 157 meseci
Zar ovo nije trebalo on sam da odradi prilikom make install-a ? Super da je resen problem, samo me cudi... Instaliranje u local direktorijum umesto direktno u /usr ne bi trebalo da ima ikakvog uticaja.
make love - !war
 
Odgovor na temu

[es] :: Linux aplikacije :: Problem s instalacijom mysql-a

[ Pregleda: 2123 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.