Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) $MYSQL "${mysql_opt[@]}" --batch --skip-column-names -e "show databases" #50

Open
mmenozzi opened this issue May 18, 2021 · 0 comments

Comments

@mmenozzi
Copy link

Hi guys,
first of all thank you to @BigAndini and all other contributors for this AutoMySQLBackup fork and further development!

On a server I recently set up I have the following error every time we run automysqlbackup:

/usr/local/bin/automysqlbackup: line 1080: 120421 Segmentation fault      (core dumped) $MYSQL "${mysql_opt[@]}" --batch --skip-column-names -e "show databases"

I'm sure that the error happens in the parse_databases function:

https://github.com/sixhop/AutoMySQLBackup/blob/master/automysqlbackup#L1189

With our configuration $MYSQL is mysql --login-path=client and ${mysql_opt[@]} is empty.
If I run the following command directly in the server bash shell I have no error:

mysql --login-path=client --batch --skip-column-names -e "show databases"

I have no idea how to debug it.
My server is an Ubuntu Server 20.04 with MySQL 8.0.25.

Do you have any clue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant