Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Setting up mariadb... > ERROR 1064 (42000) at line 7: You have an error in your SQL syntax; #9

Closed
kuerious opened this issue Jul 16, 2019 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@kuerious
Copy link

System:
ESXi 6.7 VM, Debian 9 x64 with full updates, ntpdate configured, security auto-updates configured

Attempt:
Installing Passbolt using installation script

Expectation:
Passbolt installer on clean Debian 9 install would function as described.

Result:
The script failed at the following code:

Processing triggers for systemd (232-25+deb9u11) ...
=====================
Setting up mariadb...
=====================
ERROR 1064 (42000) at line 7: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-user@'localhost' identified by xxxxxxxxx at line 1
root@passwords:~#

@dlen
Copy link
Member

dlen commented Jul 16, 2019

Thanks for the report looks like backticks are missing on the mysql installation that is why you face this error.
I will try to fix this soon as there is some work scheduled to revamp the scripts for debian 10.

@dlen dlen self-assigned this Jul 16, 2019
@dlen dlen added the bug Something isn't working label Jul 16, 2019
@kuerious
Copy link
Author

kuerious commented Jul 16, 2019 via email

@dlen
Copy link
Member

dlen commented Jul 16, 2019

Hi,

Yes you can patch it manually, it's pretty easy fix.

Edit passbolt_pro_debian_installer.sh

Go to line 683 and replace the whole line with the following one:

CREATE DATABASE IF NOT EXISTS \`$(__config_get "$_config_db")\`;

Go to line 684 and proceed the same with the following:

GRANT ALL ON \`$(__config_get "$_config_db")\`.* to \`$(__config_get "$_config_user")\`@'localhost' identified by '$(__config_get "$_config_pw")';

@kuerious
Copy link
Author

kuerious commented Jul 16, 2019 via email

@kuerious
Copy link
Author

kuerious commented Jul 16, 2019 via email

@kuerious
Copy link
Author

kuerious commented Jul 16, 2019 via email

@kuerious
Copy link
Author

kuerious commented Jul 16, 2019 via email

@dlen
Copy link
Member

dlen commented Jul 16, 2019

This one looks good: https://i.imgur.com/fHsRf0K.png

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants