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"
"From a bash shell you could just type ctrl-c and get a new prompt. In"
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:
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 make it work:
Again, this is solely for tutorial since I'd like to move to the next step and SHOULD NOT be done in actual coding environment. This works, for tutorial purposes.
I will update once I found the actual solution. :-)
Comments
Post a Comment