#HELP IMPORTANT

74 messages · Page 1 of 1 (latest)

livid rapids
#

Have you restarted terminal?

supple spoke
#

yes

#

export PATH=${PATH}:/usr/local/mysql-8.0.32-macos13-arm64/bin

#

it doesnt work

livid rapids
#

Can you show me the ls of that folder?

supple spoke
#

kk

livid rapids
#

That's your home directory... I meant to ls the MySQL directory that you're adding to your path

supple spoke
#

ohhhhh

#

wait

#

i have two

#

which one do u want

livid rapids
#

The one you're attempting to add to your path

supple spoke
#

oh

#

its the 2nd one

#

kk

#

thats the ls

#

of the path

#

but i'm doing it to the bin

livid rapids
#

Yeah but you're adding the bin folder, I want to see what's in that folder

supple spoke
#

KK

#

kk*

livid rapids
#

Ok it's there

supple spoke
#

what is there

livid rapids
#

What file did you edit to add it to the path?

livid rapids
supple spoke
#

oh

#

I added it to a bashprofile file

#

so .bash_profile

#

which is in my

#

home directory

livid rapids
#

Ok in your terminal run echo $SHELL

#

Tell me what it outputs

supple spoke
#

/bin/zsh

livid rapids
#

Ok you're using ZSH not Bash

supple spoke
#

do u want me to go to my home directory

#

oh

#

so then what do I do

#

all the videos and tutorials are in bash

livid rapids
#

In your home directory do you have a .zshrc file?

supple spoke
#

yh

#

i do

livid rapids
#

Well actually do you have a .zprofile?

supple spoke
#

yh

#

I do

#

I have both

livid rapids
#

If you do that's the file you need to edit.

#

Add the to the path in there

supple spoke
#

Ok

livid rapids
#

Then restart terminal and see if it worked

supple spoke
#

so i opened it

#

rn

#

then do i put in my export code

livid rapids
#

Yes

supple spoke
#

kk

#

Ok

#

ty

#

i got a different error

#

but it means now

#

i have it

#

in my system

#

like I can work on from this

#

ty

#

I spent 3 hours on this issue 😭 Ty so much it means a lot

livid rapids
#

MacOS used to use Bash, it now uses ZSH. So if a tutorial tells you to use .bashrc or .bash_profile use the ZSH one instead

supple spoke
#

now I just do mysql -u -root -p

#

not dash root

#

yh makes sense

#

its pretty old

#

OK

#

IT WORKS

#

TY SO MUCH