Skip to main content

Posts

Showing posts from July, 2023

MySQL Command Line - Newbies Errors

 Newbies Errors when using MySQL Command Line Client (CLI) 1. Path This will give an error: This is actually correct: * Notice the "/" and "\". 2. Exiting error So when I got the error from the above: I didn't know how to exit.  To exit,                "From a bash shell you could just type ctrl-c and get a new prompt. In" 3. Connection with Go I'm working on Go at the moment. And the following is the tutorial I'm following:  https://go.dev/doc/tutorial/database-access When I tried running "go run .", I received the following error: I tried: a) Added a new user that is NOT "root" - same error b) Added the parameter "AllowNativePasswords: true": And was finally seeing a different error: So it seems like the DBUSER and DBPASS that I've set based on the steps weren't saved... I wasn't able to find the reason why it's not working.. So instead of handling it in the command, the following is what I did to...