M
M
Maks Burkov2017-10-06 16:15:57
Python
Maks Burkov, 2017-10-06 16:15:57

Error "Not Connected", How to join?

Hello .
I get the error "Not connected", I don't understand what's the matter, who faced it?
1. The server is on
2. Everything is fine in the command line.
59d78149419b8140491130.png59d78163f295b984161578.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Yakushenko, 2019-06-30
@alexkom6

So you need to API Yandex.Maps . They have separate APIs for distances there.

A
AVKor, 2017-10-06
@Maks00088

Here

M
Mendeleev, 2017-10-08
@IamNotStranger

Guys, I'm new. Please help.
MySQL doesn't start on my Mac and I haven't tried anything - both MAMP and everything else.
After reading the article sqlinfo.ru/articles/info/16.html , I found out that I have this error:
ERROR 1045 (28000): Access denied for user 'kot'@'localhost' (using password: NO)
Followed the instructions, and now he stopped letting me into MySQL at all. See what he writes below. Help me please!
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or\g.
Your MySQL connection id is 380
Server version: 5.7.19 Homebrew
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> GRANT ALL PRIVILEGES ON *.* TO [email protected]
-> -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
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 '-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION' at line 2
mysql> GRANT ALL PRIVILEGES ON *.* TO [email protected]
-> -> IDENTIFIED BY 'kots' WITH GRANT OPTION;
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 '-> IDENTIFIED BY 'kots' WITH GRANT OPTION' at line 2
mysql> GRANT ALL PRIVILEGES ON *.* TO [email protected]
-> IDENTIFIED BY ' some_pass' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON *.* TO [email protected]"%"
-> GRANT ALL PRIVILEGES ON *.* TO [email protected]"%"
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
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 'GRANT ALL PRIVILEGES ON *.
IDENTIFIED BY 'some_pass' WITH GRANT OP' at line 2
mysql> mysql --user=root mysql
-> GRANT ALL PRIVILEGES ON *.* TO [email protected]
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
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 'mysql --user=root mysql
GRANT ALL PRIVILEGES ON *.* TO [email protected]
IDENTIFIE' at line 1
mysql> cysql> create user 'kot' @'localost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGIES ON * . * TO 'kot'@'localhost';
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 'PRIVILEGIES ON * . * TO 'kot'@'localhost'' at line 1
mysql> GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> GRANT ALL PRIVILEGES ON * . * TO 'kot'@'localhost';
Query OK, 0 rows affected (0.01 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
Mac-New:~ Kot$ mysql -u [kot]-p
ERROR 1045 (28000): Access denied for user '[kot]-p'@'localhost' (using password: NO)
Mac-New:
ERROR 1045 (28000): Access denied for user 'Kot'@'localhost' (using password: NO)
Mac-New:~ Kot$ mysql
ERROR 1045 (28000): Access denied for user 'Kot'@'localhost' (using password: NO)
Mac-New:~ Kot$ quit
-bash: quit: command not found
Mac-New:~ Kot$ mysql
ERROR 1045 (28000): Access denied for user 'Kot'@'localhost' (using password: NO )
Mac-New:~ Kot$ GRANT [ALL PRIVILEGES] ON [*].[*] TO '[kot]'@'localhost';
-bash: GRANT: command not found
Mac-New:~ Kot$ mysql
ERROR 1045 (28000): Access denied for user 'Kot'@'localhost' (using password: NO)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question