root@beaglebone:~# mysql --version
mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
root@beaglebone:~# cat /etc/mysql/my.cnf
# The MariaDB configuration file
# The MariaDB/MySQL tools read configuration files in the following order:# 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.
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
root@beaglebone:~# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SELECT User, Host FROM mysql.user;
+------+-------------+
| User | Host |
+------+-------------+
| root | % |
| root | 192.168.1.% |
+------+-------------+
2 rows in set (0.01 sec)
MariaDB [(none)]>
paul@debian-9-2-1-64:~$ telnet 192.168.1.52 3306
Trying 192.168.1.52...
telnet: Unable to connect to remote host: Connection refused
Same with telnet (from Debian in VirtualBox) :
paul@debian-9-2-1-64:~$ telnet 192.168.1.52 3306
Trying 192.168.1.52...
telnet: Unable to connect to remote host: Connection refused
paul@debian-9-2-1-64:~$ ssh root@192.168.1.52
Last login: Tue Oct 10 14:07:21 2017 from 192.168.1.13
root@beaglebone:~# ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.1.52 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::d239:72ff:fe17:eaae prefixlen 64 scopeid 0x20<link>
ether d0:39:72:17:ea:ae txqueuelen 1000 (Ethernet)
RX packets 7335 bytes 663521 (647.9 KiB)
RX errors 0 dropped 1751 overruns 0 frame 0
TX packets 582 bytes 54176 (52.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 174
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 160 bytes 12960 (12.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 160 bytes 12960 (12.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.7.2 netmask 255.255.255.252 broadcast 192.168.7.3
ether d0:39:72:17:ea:b0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.6.2 netmask 255.255.255.252 broadcast 192.168.6.3
ether d0:39:72:17:ea:b3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@beaglebone:~# systemctl status mysql
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2017-10-10 14:07:21 CEST; 4h 52min ago
Process: 909 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITIO
Process: 900 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Process: 598 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VA
Process: 573 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION
Process: 540 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld
Main PID: 812 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 26 (limit: 4915)
CGroup: /system.slice/mariadb.service
└─812 /usr/sbin/mysqld
Oct 10 14:07:08 beaglebone systemd[1]: Starting MariaDB database server...
Oct 10 14:07:16 beaglebone mysqld[812]: 2017-10-10 14:07:16 3064090624 [Note] /usr/sbin/
Oct 10 14:07:21 beaglebone systemd[1]: Started MariaDB database server.
root@beaglebone:~# iptables -L -n -v
Chain INPUT (policy ACCEPT 2959 packets, 304K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 478 packets, 42627 bytes)
pkts bytes target prot opt in out source destination
root@beaglebone:~# iptables -L -n -v
Chain INPUT (policy ACCEPT 2959 packets, 304K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 478 packets, 42627 bytes)
pkts bytes target prot opt in out source destination
Tasks: 26<span style="color: #000;" class=
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2460b837-a0af-49c3-be6e-87e827d0e58f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
C:\Users\VdBer>telnet 192.168.1.52 3306
Connecting To 192.168.1.52...Could not open connection to the host, on port 3306: Connect failed
C:\Users\VdBer>
Finaly, I was able to connect to the MySql server on the remote Beaglebone :
However, I get this warning re compatibility of the server:
So, my next question is how to remove the installed version (installed by 'apt-get install mysql-server mysql-client' on the Beaglebone) and install the official MySQL distribution?