Post by OmniKnight on Nov 23, 2017 12:35:45 GMT -8
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2017-11-23 20:16:54
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Not Present
HTU21DF: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Not Present
OLED: Present
SunAirPlus: Present
Sunlight Sensor: Not Present
WXLink: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
Error 1049: Unknown database 'GroveWeatherPi'
Traceback (most recent call last):
File "GroveWeatherPi.py", line 1750, in <module>
pclogging.log(pclogging.INFO, __name__, "GroveWeatherPi Startup Version 2.99")
File "/home/pi/Desktop/New_SDL/SDL_Pi_GroveWeatherPi/pclogging.py", line 70, in log
cur.close()
UnboundLocalError: local variable 'cur' referenced before assignment
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $
I know this is an issue with MySQL, this is the first time I ever used MySql and when I followed the tutorial to download that on my Pi zero w I got some thing called MariaDb ?! Is that the same as Sql
Also I can't start a server unless I added 'sudo' and it asks me for a password but none of the passwords that I remember works!?
I also cant list all the databases that has been created ?!!
here is an insight:
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $ sudo mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> SHOW DATABASES
->
MariaDB [(none)]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> use GroveWeatherPi
ERROR 1049 (42000): Unknown database 'GroveWeatherPi'
MariaDB [mysql]>
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Please help! this is urgent
Thanks
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2017-11-23 20:16:54
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Not Present
HTU21DF: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Not Present
OLED: Present
SunAirPlus: Present
Sunlight Sensor: Not Present
WXLink: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
Error 1049: Unknown database 'GroveWeatherPi'
Traceback (most recent call last):
File "GroveWeatherPi.py", line 1750, in <module>
pclogging.log(pclogging.INFO, __name__, "GroveWeatherPi Startup Version 2.99")
File "/home/pi/Desktop/New_SDL/SDL_Pi_GroveWeatherPi/pclogging.py", line 70, in log
cur.close()
UnboundLocalError: local variable 'cur' referenced before assignment
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $
I know this is an issue with MySQL, this is the first time I ever used MySql and when I followed the tutorial to download that on my Pi zero w I got some thing called MariaDb ?! Is that the same as Sql
Also I can't start a server unless I added 'sudo' and it asks me for a password but none of the passwords that I remember works!?
I also cant list all the databases that has been created ?!!
here is an insight:
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $ sudo mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> SHOW DATABASES
->
MariaDB [(none)]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> use GroveWeatherPi
ERROR 1049 (42000): Unknown database 'GroveWeatherPi'
MariaDB [mysql]>
pi@raspberrypizerow:~/Desktop/New_SDL/SDL_Pi_GroveWeatherPi $ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Please help! this is urgent
Thanks