[GH-ISSUE #367] An error occured when creating user #313

Closed
opened 2026-02-25 21:34:43 +03:00 by kerem · 1 comment
Owner

Originally created by @gnh1201 on GitHub (Jan 7, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/367

socket type:

# vi hm3.ini    # edit db configuration
# php ./scripts/config_gen.php    # re-generate configuration
# php ./scripts/create_account.php hm3 hm3pw    # add user to hm3
Array
(
    [0] => Connecting to dsn: mysql:unix_socket=/var/lib/mysql/mysql.sock;dbname=hm3
)
Array
(
)
An error occured when creating user  'hm3'

host type:

# vi hm3.ini    # edit db configuration
# php ./scripts/config_gen.php    # re-generate configuration
# php ./scripts/create_account.php hm3 hm3pw    # add user to hm3
Array
(
    [0] => Connecting to dsn: mysql:host=127.0.0.1;dbname=hm3
)
Array
(
)
An error occured when creating user  'hm3'

test a db user is valid(or invalid):

$ mysql -uhm3 -phm3pw
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 31
Server version: 10.4.11-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

How can I debug this error?

Originally created by @gnh1201 on GitHub (Jan 7, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/367 socket type: ``` # vi hm3.ini # edit db configuration # php ./scripts/config_gen.php # re-generate configuration # php ./scripts/create_account.php hm3 hm3pw # add user to hm3 Array ( [0] => Connecting to dsn: mysql:unix_socket=/var/lib/mysql/mysql.sock;dbname=hm3 ) Array ( ) An error occured when creating user 'hm3' ``` host type: ``` # vi hm3.ini # edit db configuration # php ./scripts/config_gen.php # re-generate configuration # php ./scripts/create_account.php hm3 hm3pw # add user to hm3 Array ( [0] => Connecting to dsn: mysql:host=127.0.0.1;dbname=hm3 ) Array ( ) An error occured when creating user 'hm3' ``` test a db user is valid(or invalid): ``` $ mysql -uhm3 -phm3pw Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 31 Server version: 10.4.11-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. ``` How can I debug this error?
kerem closed this issue 2026-02-25 21:34:43 +03:00
Author
Owner

@gnh1201 commented on GitHub (Jan 8, 2020):

It is selinux issue. closed.

<!-- gh-comment-id:571864368 --> @gnh1201 commented on GitHub (Jan 8, 2020): It is selinux issue. closed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#313
No description provided.