Closed TerrorSource closed 6 months ago
Maybe related to SBFspot/SBFspot#7 ?
Still trying things to make this work. Trying on a Raspberry Pi now.
I can connect the Pi to the MariaDB 10 on Synology now with "mysql -h 192.168.1.x -u root -p" I cant however execute the sql files from the script. Had to do the DB.sql by hand mysql -h 192.168.1.x -p -u sbfspot < /usr/local/bin/sbfspot.3/CreateMySQLDB.sql
The 'CreateMySQLUser.sql' can't be executed due to the fact that it has a simple password which can't be used on MariaDB 10 on Synology.
I cant skip the "CreateMySQLUser.sql" via sbfspot-config script, it MUST be executed. It doesn't use the password i've set in the config script.
│ There is a problem: │ │ ERROR 1049 (42000): Unknown database 'sbfspot' │ │ │ │ Did you create SBFspot database? │ │ mariadb < /usr/local/bin/sbfspot.3/CreateMySQLDB.sql │ │ mariadb < /usr/local/bin/sbfspot.3/CreateMySQLUser.sql │
FIXED the part where the user can't be created. Maybe something to add/change in the script that it is optional instead of forced.
cp "$tmp_dir/CreateMySQLUser.sql" "$dir_program"
to
#cp "$tmp_dir/CreateMySQLUser.sql" "$dir_program"
so it doesn't run the sql file.@sbf- dont know if i should close the issue or not. Forcing the sql files are the issue with MariaDB 10 on Synology. The 1-2-3 steps in my previous post should fix it for non-Synology users.
For MariaDB, you are responsible to create the SBFspot database and SBFspotUser because you need to execute the scripts as root. But maybe this isn't made clear in the script?
An option is to ask for root password to be able to execute the SQL scripts? Not everyone is going to like this, I'm afraid
I partly agree.
For MariaDB, the user must execute the scripts manually but why does the script still tries to run it while i choose MariaDB in the gui-part of the script? I guess that’s because the script can run it against MySQL but not against MariaDB while they are under 1 option.
Maybe split the MySQL/MariaDB in 2 parts and show a message when people choose MariaDB that they need to run the sql files manually up front or create a “pause” part where they can continue when they have run the scripts manually.
Hi,
I'm trying to configure SBFspot in Docker to use MariaDB 10 on a Synology to save my data. Exporting/importing in MariaDB 10 is much easier as using csv files or a single db file. Docker image i'm using: https://github.com/nakla/sbfspot
SBFspot.cfg
# MySQL SQL_Database=sbfspot SQL_Hostname=192.168.1.x SQL_Username=SBFspotUser SQL_Password=password
Error via Terminal:
Error: Can't open MySQL db [sbfspot] : Can't connect to MySQL server on '192.168.1.x' (115)
How do i get this working? that SBFspot puts the data in MariaDB 10