last day (29 days later) » 

9:51 PM
[root@localhost mysql]# cat /etc/my.cnf
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
hello
 
Hi
is your server located at localhost?
 
yes. this is a development machine.
 
sudo yum install nmap && nmap >> port.lst && cat port.lst
 
download complete
Installed:
nmap.x86_64 2:6.40-4.el7

Dependency Installed:
nmap-ncat.x86_64 2:6.40-4.el7

Complete!
 
10:07 PM
ok now post the output of port.lst
 
[root@localhost mysql]# port.lst
bash: port.lst: command not found...
 
port.lst should be a file try cat port.lst
do you understand my last command
 
yes. i just need to redact an ip or two in that file. one moment
 
i could care less about your IP's I'm not here to do damage. Is port 3306 listed?
 
Nmap 6.40 ( http://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
Can pass hostnames, IP addresses, networks, etc.
Ex: scanme.nmap.org, microsoft.com/24, redacted.ip.address1; redacted.ip.address
-iL <inputfilename>: Input from list of hosts/networks
-iR <num hosts>: Choose random targets
--exclude <host1[,host2][,host3],...>: Exclude hosts/networks
--excludefile <exclude_file>: Exclude list from file
HOST DISCOVERY:
-sL: List Scan - simply list targets to scan
i know. i do trust you. but this chat room will remain afterwards in a site full of hackers.
no 3306
 
10:15 PM
use the form nmap <your local ip>
 
[root@localhost mysql]# nmap my.local.ip

Starting Nmap 6.40 ( http://nmap.org ) at 2014-12-16 14:16 PST
Nmap scan report for my.local.ip
Host is up (0.0020s latency).
Not shown: 999 filtered ports
PORT STATE SERVICE
5000/tcp open upnp

Nmap done: 1 IP address (1 host up) scanned in 18.95 seconds
i used the ip that my remote server says i log in from. i assume it is correct. not sure if it is a mask.
 
is the old mysql-server still installed?
 
systemctl status mysqld says it is loaded but inactive
 
ok systemctl mysqld start and reissue nmap <your ip>
 
[root@localhost mysql]# nmap my.local.ip

Starting Nmap 6.40 ( http://nmap.org ) at 2014-12-16 14:25 PST
Nmap scan report for my.local.ip
Host is up (0.0021s latency).
Not shown: 999 filtered ports
PORT STATE SERVICE
5000/tcp open upnp

Nmap done: 1 IP address (1 host up) scanned in 23.01 seconds
systemctl start mysql before the preceding block returned without throwing any messages
this machine is not on a network. i have tomcat on it. i use this machine to develop and test web apps locally on this machine only.
 
10:29 PM
then you dont need port filtering in iptables thats why i can only see port 5000
 
it is connected to the internet. it uses firewalld instead of iptables because this is centos 7.
what i am saying is that all the web and database requests for this machine come from localhost
 
regardless attempt installing WorkBench:` sudo yum install mysql-workbench-community` Are you behind a router?
 
the machine is behind a cable modem only.
 
May I recommend a setup change?
 
sure.
Installed:
mysql-workbench-community.x86_64 0:6.2.4-1.el7

Dependency Installed:
proj.x86_64 0:4.8.0-4.el7
python-crypto.x86_64 0:2.6.1-1.el7.centos
python-ecdsa.noarch 0:0.11-3.el7.centos
python-paramiko.noarch 0:1.15.1-1.el7
python-six.noarch 0:1.3.0-4.el7
unixODBC.x86_64 0:2.3.1-10.el7

Complete!
 
10:37 PM
Buy any Wired/WirelessRouter, then disconnect your PC from the cable Modem Call your Cable Company, tell them to flush their Bridge Table for your Mac. Connect the Cable Modem to the WAN Port in the router and reconnect your PC to port 1, and then Disable Firewalld... The private IP address is the firewall
 
is it the same for a pc? this is a windows pc on which i installed centos 7 in a partition. i will copy this text in another document and take it to best buy.
 
just some helpful advice... try Starting Workbench, and connecting with the root login. Yes any router between your ISP and your PC becomes a Hardware Firewall. Firewalld/iptables is called a software firewall, and is only intended to be use if the server its installed on IS FUNCTIONING AS A SERVER/ROUTER
 
thank you. what command should i use to start workbench?
 
Are you relatively new to linux or do u like getting your hands dirty... Workbench should appear in your desktop menu if you logout/login
 
i installed linux on my development machine a few weeks ago and have been using it exclusively since then. i was using putty before that, but only infrequently. i am trying to deeply understand it so i can understand my remote server.
should i log out and log in? or run a command in the terminal to launch workbench?
 
10:50 PM
run the command in the terminal, altho I don't know what it is... Do you know what flavor your remote distro is?
 
I selected Applications > Programming > workbench but nothing happened.
then i typed
 
ok, try /usr/bin/mysql-workbench --admin
 
i use centos 7 locally and remotely.
[root@localhost mysql]# /usr/bin/mysql-workbench --admin
/usr/libexec/mysql-workbench/mysql-workbench-bin: error while loading shared libraries: libzip.so.2: cannot open shared object file: No such file or directory
 
Then you've chosen correctly, altho if you can afford to learn in steps, start at ubuntu, then move to Arch, then CentOS then Gentoo or LFS
sudo yum install libzip
 
Installed:
libzip.x86_64 0:0.10.1-8.el7

Complete!
 
10:59 PM
now try
 
[root@localhost mysql]# /usr/bin/mysql-workbench --admin
/usr/libexec/mysql-workbench/mysql-workbench-bin: error while loading shared libraries: libtinyxml.so.0: cannot open shared object file: No such file or directory
sorry. it took me a while to realize you meant to repeat the preceding command.
 
thats ok now we just install every mising library til it opens
sudo yum install tinyxml
 
Installed:
tinyxml.x86_64 0:2.6.2-3.el7

Complete!
 
try opening again
 
i did sudo - at the beginning of the session, so i dont need to write sudo every time.
[root@localhost mysql]# /usr/bin/mysql-workbench --admin
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
/usr/libexec/mysql-workbench/mysql-workbench-bin: Missing argument for option --admin
 
11:05 PM
its ok
did you get a window?
 
no window. just the results in the terminal i posted above.
 
try mysql-workbenh --admin localhost
 
the resulting window comes with a dialog box that says:
An error occurred while the application executed the given startup action. The returned error is:

Invalid connection name 'localhost' given for --query

See also the output window.
and the terminal reported:
[root@localhost mysql]# mysql-workbench --admin localhost
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
Ready.
 
ok try mysql-workbench --admin 127.0.0.1
 
same results. again workbench window opened but with this dialog box:
An error occurred while the application executed the given startup action. The returned error is:

Invalid connection name '127.0.0.1' given for --query

See also the output window.
and the same command line message about stored passwords being lost once quit
 
11:10 PM
darn try clicking the Icomn in your menu now
 
you mean Applications > Programming > MySQL Workbench? or logout and login to get it on the desktop?
 
no App> Programming
 
that worked
 
ok now do u see a root login?
 
i think that is what it is. i have always used the command line with mysql, so i dont really know the workbench
 
11:15 PM
 
yes
 
I circled it in the image, now try logging in with what you think your root password for MySQL is
 
i clicked on what you circled and it opened up a query window.
 
yes, it should ask for your root password
 
perhaps with all the uninstall and reinstall it does not have a root password anymore.
 
11:18 PM
it always has a root password
any installed instance of mysql has a root password
 
ok. then i have not triggered the request for it yet.
 
it will look similar to this
 
i clicked on what you circled and it opened up the workbench instead. there is an open tab called Query 1
i typed show databases; and it listed 3 system databases
i thought mysql_secure_installation is what set the root password
in any event. i have eclipse open. i know how to create the database used by an app i am working on. if i can give the database a root password and have my app connect using the password, i will consider this question answered. the app works perfectly when mysql is running. the app will populate the database. i just need to create a blank database with create database somedatabase; and give root a password.
my webapp seems to be building the contents of the empty database that i just created in the workbench. i left the password argument empty in the connection string in the webapp
 
11:38 PM
then that means the last time u installed mysql the root password was empty
 
given the number of times i removed and re-installed mysql today, that makes sense. it did have a root password before everything went south yesterday.
 
well if you want a root password follow all the steps in my old answer, making sure to backup or delete the config directory in step 2 and leave the repos, in step 4,5, 6 and redo it
 
i just set the root password. this question is now answered. thank you very much for helping me. i can resume work now after losing a day. if you want to write it up as an answer, i would be happy to mark it as accepted and to read a few of your other answers to find some who deserve +1 independently on their own separate merits.
 

  last day (29 days later) »