• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in the installation of MySQL.

 
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Hi, after install MySQL 8.0.26 in Linux Centos 8 I trying to alter mysqld.cnf but I can't find this file. Where I find this file?
Thanks and best regards.
 
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
It doesn't exist. That's for an older version of MySQL. Also, note that if you're using the RPM/DNF installer, the actual "mysql" that comes with the OS is MariaDB. There are some places where the different name matters.

Your config information should be in /etc/my.cnf.d, but I can be more definite if I know what you want to change.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Learning in some web videos how to access remotely I saw that in mysql.cnf are there a parameter called bind-address that you set with IP address to do this access now what I want is how I do this.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
File is /etc/my.cnf.d/mariadb-server.cnf

You should see bind-address in the [mysqld] section. If not, add it:

 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
this is the content of my.cnf.d:

don't have mariadb information.
this grep show me that exist mysql directory in the /etc but I can't access:

tring to access I reveiving:
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
You tried to execute a directory name like it was a program.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Tell me how grant access from my mysql workbench of my windows to mysql on my VPS all that I saw until now is to change bind-address from 127.0.0.1 to IP Address of my VPS.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
Generally, you set bindaddress to 127.0.0.1 for access only on the local machine or 0.0.0.0 for access from any machine. If you use 0.0.0.0, then make sure you have set up your mysql machine's firewall appropriately.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Ok Tim but where I change it to 0.0.0.0 which in my case will be my IP address.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
No. "0.0.0.0" means Listen TO all IP addresses. Not listen ON my IP address. Code it as "0.0.0.0" no matter what IP addresses your machine has.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Right, how I code 0.0.0.0 and where I code it, all my info points to mysqld.cnf but that file doesn't exist.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
/etc/my.cnf.d/mysql-server.cnf
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
I included bind-address as you said me but still no connection from mysql workbench with mysql server.
As you say /etc/my.cnf.d/mysql-server.cnf:
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
I tried too:
 
Marshal
Posts: 4525
572
  • Number of slices to send:
    Optional 'thank-you' note:

Cezar Apulchro wrote:I included bind-address as you said me but still no connection from mysql workbench with mysql server.


Are you certain that it was a connection-related issue and not an authentication/authorization-related issue?

Have you checked firewalls on the host where database server is running, or where the client it trying to attach from, or in any interconnecting networks?

Have you tried disabling any antivirus applications (if any) on either side?
 
Ron McLeod
Marshal
Posts: 4525
572
  • Number of slices to send:
    Optional 'thank-you' note:
Check that there is a listener on the host platform for 0.0.0.0 using  netstat -nat | grep 3306 (Linux) or netstat -nat | findstr 3306 (Windows).

For example:
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Result:
 
Ron McLeod
Marshal
Posts: 4525
572
  • Number of slices to send:
    Optional 'thank-you' note:
So it looks like the database server is listening on all interfaces ✓.  The next step is to check that if there is a firewall running (iptables, firewalld, etc.), that it is allowing connections to TCP port 3306 from external endpoints.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
I made the changes but I still with mysql workbench that don't access my mysql in vps.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
I think you need this:

Because it looks like you're blocking access to port 3306 (mysql).

Incidentally, Ron, "netstat" is deprecated now. The replacement command is "ss". Fortunately the network processes have a lot of backwards compatibility. It took me forever to switch from "ifconfig" to "ip". I still mostly use "netstat".
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Many URLs show "/etc/mysql/my.cnf" but in my mysql installation I don't have mysql folder in /etc, why haven't this folder in Centos 8?
URLs:

I must to create this folder and my.cnf manually?
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
I included bind-address in my.cnf but workbench still don't access my mysql.
 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
Did you put it in the proper context?

The mysql-server.cnf file is in Windows INI-style file format with named sections. The bind-address line should be under the [mysqld] section.

THAT IS, if your configuration matches what I'm expecting.

The only way to get it actually right is to read the instructions for the mysql server that you actually have installed. Specifically, whichever brand of mysql you installed: Oracle MySQL or MariaDB. AND the instructions should also be instructions for the exact version of MySQL or MariaDB that you installed, as the config information changes depending on both the version of MySQL or MariaDB and also on the OS distro version that you are using to host the server.

It is necessary to read the documentation. Otherwise, you will just wander around in circles again, and waste a lot of time.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
How you said me I believe that the bind-address seted now is right but Workbench still not access to MySQL.

 
Tim Holloway
Saloon Keeper
Posts: 27851
196
  • Number of slices to send:
    Optional 'thank-you' note:
The netstat looks OK, though I like the "-lnp" option, since it confirms that the holder of port 3306 is indeed a MySQL/MariaDB server.

However, assuming that's what's listening there, then you probably haven't opened your firewall to allow outside access. Look back at this thread and you'll see where I posted the firewall-cmd statements that you have to issue in order to open access to MySQL. You have to do this with root/sudo privileges.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
after thefirewall:

Still the the same.
 
Ron McLeod
Marshal
Posts: 4525
572
  • Number of slices to send:
    Optional 'thank-you' note:

On the 14th of August Ron McLeod wrote:Are you certain that it was a connection-related issue and not an authentication/authorization-related issue?


On the 14th of August Ron McLeod wrote:Have you checked firewalls on the host where database server is running, or where the client it trying to attach from, or in any interconnecting networks?


On the 14th of August Ron McLeod wrote:Have you tried disabling any antivirus applications (if any) on either side?

 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
Now problem is solved, I changed the bind-address from 0.0.0.0 to my IP address in mysql-server.cnf.
Thanks and best regards.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Number of slices to send:
    Optional 'thank-you' note:
I forgot to say that I had to create a user with access "%".
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |