Class Activity: Script access to MySQL logs - JadenGil/Jaden-Tech-Journal GitHub Wiki

Getting Started:

Edited /etc/mysql/mariadb.conf.d/50-server.cnf and uncommented the following:

image

Then restarted mariadb

Then I entered some data on the website:

image

Log:

image

Sent some failed logins:

image

Log with failed logins:

image

Using grep:

image

Using awk:

image

Now in dbsec.bash:

image


My own script:

image

Deliverable 3:

image

I'm not sure why the outputs are so messy since I'm using the exact code with slight modifications to make it so it'll get connect instead of access denied messages but both outputs were messy so I just moved on since all the necessary info is there.