View Issue Details

IDProjectCategoryView StatusLast Update
0007750Kali LinuxQueued Tool Additionpublic2022-06-15 16:56
Reporterygh.aiming Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Product Versionkali-dev 
Summary0007750: can't find two configuration files network and mysq
Description

Dear Mr/Mrs

srroy,No one on the tech forum seems to answer my question.good day .I can't find two configuration files network and mysq.
Are they divided into many configuration files?
Could you please tell me?

Thanks!

Attached Files
image.png (13,239 bytes)   
image.png (13,239 bytes)   
image-2.png (51,665 bytes)   
image-2.png (51,665 bytes)   
image-3.png (22,073 bytes)   
image-3.png (22,073 bytes)   

Activities

Michu

Michu

2022-06-11 15:39

reporter   ~0016252

/etc/network/interfaces and /etc/resolv.conf network settings files about mysql i think it's /etc/mysql is folder that contains cnf files check them out maybe they are files that you looking for

ygh.aiming

ygh.aiming

2022-06-11 16:37

reporter   ~0016258

I cannot connect to the MySQL service using the client tool, why is this?

ygh.aiming

ygh.aiming

2022-06-12 07:10

reporter   ~0016263

┌──(root�kali)-[~]
└─# cd /etc/mysql 1 ⨯

┌──(root�kali)-[/etc/mysql]
└─# cat my.cnf

The MariaDB configuration file

#

The MariaDB/MySQL tools read configuration files in the following order:

0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.

1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,

2. "/etc/mysql/conf.d/*.cnf" to set global options.

3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.

4. "~/.my.cnf" to set user-specific options.

#

If the same option is defined multiple times, the last one will apply.

#

One can use all long options that the program supports.

Run program with --help to get a list of available options and with

--print-defaults to see which it would actually understand and use.

#

If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/

#

This group is read both by the client and the server

use it for options that affect everything

#
[client-server]

Port or socket location where to connect

port = 3366
socket = /run/mysqld/mysqld.sock

Import all .cnf files from configuration directory

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

┌──(root�kali)-[/etc/mysql]
└─# cat mariadb.cnf

The MariaDB configuration file

#

The MariaDB/MySQL tools read configuration files in the following order:

0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.

1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,

2. "/etc/mysql/conf.d/*.cnf" to set global options.

3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.

4. "~/.my.cnf" to set user-specific options.

#

If the same option is defined multiple times, the last one will apply.

#

One can use all long options that the program supports.

Run program with --help to get a list of available options and with

--print-defaults to see which it would actually understand and use.

#

If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/

#

This group is read both by the client and the server

use it for options that affect everything

#
[client-server]

Port or socket location where to connect

port = 3366
socket = /run/mysqld/mysqld.sock

Import all .cnf files from configuration directory

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

┌──(root�kali)-[/etc/mysql]
└─# cd conf.d

┌──(root�kali)-[/etc/mysql/conf.d]
└─# ls
mysql.cnf mysqldump.cnf

┌──(root�kali)-[/etc/mysql/conf.d]
└─# cat mysql.cnf
[mysql]

┌──(root�kali)-[/etc/mysql/conf.d]
└─# cat mysqldump.cnf
[mysqldump]
quick
quote-names
max_allowed_packet = 16M

┌──(root�kali)-[/etc/mysql/conf.d]
└─# cd mariadb.conf.d
cd: 没有那个文件或目录: mariadb.conf.d

┌──(root�kali)-[/etc/mysql/conf.d]
└─# cd ../mariadb.conf.d 1 ⨯

┌──(root�kali)-[/etc/mysql/mariadb.conf.d]
└─# ls
50-client.cnf 50-mysql-clients.cnf 50-mysqld_safe.cnf 50-server.cnf 60-galera.cnf

┌──(root�kali)-[/etc/mysql/mariadb.conf.d]
└─# find / -name .my.cnf
find: ‘/run/user/130/gvfs’: 权限不够

┌──(root�kali)-[/etc/mysql/mariadb.conf.d]
└─#

image-4.png (27,497 bytes)   
image-4.png (27,497 bytes)   
Michu

Michu

2022-06-12 17:40

reporter   ~0016265

show me your config that you're using to connect to db

ygh.aiming

ygh.aiming

2022-06-13 09:22

reporter   ~0016266

I can't configure mysql. mysql should not be configured
I installed default-mysql-client and default-mysql-client-core. But still can't connect

image-5.png (62,941 bytes)   
image-5.png (62,941 bytes)   
ygh.aiming

ygh.aiming

2022-06-13 09:22

reporter   ~0016267

I used to add skip-grant-tables in /etc/mysql/my.cnf. It is normal to skip password verification. But I removed skip-grant-tables and typing mysql -uroot -p on the kali system also skips the password.

ygh.aiming

ygh.aiming

2022-06-13 09:23

reporter   ~0016268

very curious

Michu

Michu

2022-06-13 19:00

reporter   ~0016270

i recommend to change port from 3366 to 3306 maybe that's the problem

ygh.aiming

ygh.aiming

2022-06-14 02:52

reporter   ~0016273

For security reasons, update prot is 3366
Type mysql -uroot -p and press enter to skip the password

image-6.png (28,192 bytes)   
image-6.png (28,192 bytes)   
daniruiz

daniruiz

2022-06-15 16:55

manager   ~0016286

Sorry but this is not a bug report, we don't provide technical support here

Issue History

Date Modified Username Field Change
2022-06-11 15:16 ygh.aiming New Issue
2022-06-11 15:39 Michu Note Added: 0016252
2022-06-11 16:34 ygh.aiming File Added: image.png
2022-06-11 16:35 ygh.aiming File Added: image-2.png
2022-06-11 16:36 ygh.aiming File Added: image-3.png
2022-06-11 16:37 ygh.aiming Note Added: 0016258
2022-06-12 07:10 ygh.aiming File Added: image-4.png
2022-06-12 07:10 ygh.aiming Note Added: 0016263
2022-06-12 17:40 Michu Note Added: 0016265
2022-06-13 09:22 ygh.aiming File Added: image-5.png
2022-06-13 09:22 ygh.aiming Note Added: 0016266
2022-06-13 09:22 ygh.aiming Note Added: 0016267
2022-06-13 09:23 ygh.aiming Note Added: 0016268
2022-06-13 19:00 Michu Note Added: 0016270
2022-06-14 02:52 ygh.aiming File Added: image-6.png
2022-06-14 02:52 ygh.aiming Note Added: 0016273
2022-06-15 16:55 daniruiz Note Added: 0016286
2022-06-15 16:56 daniruiz Assigned To => daniruiz
2022-06-15 16:56 daniruiz Status new => closed
2022-06-15 16:56 daniruiz Resolution open => suspended