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

[Bug] database remote failed #4332

Closed
Benzitczo opened this issue Mar 20, 2024 · 5 comments
Closed

[Bug] database remote failed #4332

Benzitczo opened this issue Mar 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Benzitczo
Copy link

Describe the bug

problem IP failed why no cant create database.

Tell us how to replicate the bug

  1. add database host mysql done
  2. now is okay worked success
  3. create database host ip and "error connection ip failed"

check imagen:
image
image

Which components are affected by this bug?

Database (MariaDB, MySQL, PostgreSQL)

Hestia Control Panel Version

v1.8.11

Operating system

Ubuntu 22.04 (x86_64)

Log capture

problem failed error connection.
@Benzitczo Benzitczo added the bug Something isn't working label Mar 20, 2024
@jaapmarcus
Copy link
Member

https://forum.hestiacp.com/t/remote-db-for-mariadb-mysql/13487/9

@Benzitczo
Copy link
Author

Benzitczo commented Mar 20, 2024

https://forum.hestiacp.com/t/remote-db-for-mariadb-mysql/13487/9

I know, already have is okay worked IP 5003 port, connect worked fix "access denied". but no cant problem create database IP failed for hestiacp?.

image

and check up image create database server.

look:
image

@jaapmarcus
Copy link
Member

It is trying to run the following command:

mysql --defaults-file=$mycnf -e 'SELECT VERSION()' > $mysql_out 2>&1

And it is failing you might need to try to run the command and see where it goes wrong.

Not a lot I can do without system access ..

@Benzitczo
Copy link
Author

Benzitczo commented Mar 20, 2024

It is trying to run the following command:

mysql --defaults-file=$mycnf -e 'SELECT VERSION()' > $mysql_out 2>&1

And it is failing you might need to try to run the command and see where it goes wrong.

Not a lot I can do without system access ..

Ohh, ok and how is explain run command?

there is example mysql root and pass > use "--defaults-file=$mycnf -e 'SELECT VERSION()' > $mysql_out 2>&1" done right?

Or possible vps hestiacp > run commands > mysql --defaults-file=$mycnf -e 'SELECT VERSION()' > $mysql_out 2>&1 right?

but sorry i am no experts.

@Benzitczo
Copy link
Author

Benzitczo commented Mar 21, 2024

Said experts help: solution success:
image

yep there is default mysql 3306 change 5003 worked.

there is /usr/local/hestia/conf

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

No branches or pull requests

2 participants