Страница 1 из 1
это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-13 22:07:02
_dmitr_
Доброго времени суток, комрады! С мускулом не сильно тесно ддружен, однако ужнуюзадачу решил и все заработало, тоесть все вроде как работает, тоесть сайт базуданных видит, кодировку нормальновоспринимает. Перед выносом всего этого чуда наружу решил запоролить учетку рута, и вот что получилось:
Код: Выделить всё
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)
mysql>
Хотя есть еще бд сайта, сайт работает нормально, естьбд почты, с ней вроде как тоже все хорошо, а тут их нет
Код: Выделить всё
mail1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create databases SOS;
ERROR 1064 (42000): 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 'databases SOS' at line 1
mysql>
началось после ввода команды
как исправить ситуаццию не пойму.

Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-13 22:44:06
Gamerman
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-13 22:46:38
_dmitr_
что пробывать то?
Код: Выделить всё
mail1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database SOS;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'SOS'
mysql>
про s на конце то я понял, однако проблема то не в этом
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-13 22:59:08
Gamerman
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-14 0:29:02
_dmitr_
чета не прет:
Код: Выделить всё
mail1# mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
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/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h mail1.triss.ru password 'new-password'
Alternatively you can run:
/usr/local/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/local/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 http://shop.mysql.com
mail1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.01 sec)
mysql>
mysql>
mysql>
mysql> \q
Bye
mail1# /usr/local/etc/rc.d/mysql-server restart
Stopping mysql.
Waiting for PIDS: 754.
Starting mysql.
mail1# /usr/local/bin/mysqladmin -u root password '123'
/usr/local/bin/mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this operation'
mail1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)
mysql> \q
Bye
mail1#
баз данных сайта и почтовика не видать...
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-14 0:43:26
Gamerman
Что-то с правами.
Попробуй
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-14 8:16:43
_dmitr_
Gamerman писал(а):Что-то с правами.
Попробуй
не помогает пробывал уже:
Код: Выделить всё
mail1# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)
mysql>
не видно созаднных баз.
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-14 8:32:45
_dmitr_
так же
Код: Выделить всё
mail1# mysqladmin -u root password '123'
mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this operation'
mail1#

Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2009-12-14 9:32:28
_dmitr_
победил, как говорится проблема в криворукости и была))
Код: Выделить всё
в файл в секции [mysqld]
[mysqld]
skip-grant-tables]
Код: Выделить всё
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> set password for root@localhost=password('123');
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> UPDATE mysql.user SET password=PASSWORD('mypassword') WHERE user='root' AND host='localhost';
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql>
Re: это не глюки это мои кривые руки, как исправить незнаю((
Добавлено: 2010-06-15 18:06:43
Jony
если не трудно....можно поподробней?
где искать секцию?