You don't have to check if a dash exists, you should be able to just add the ticks regardless.
@DrPrez: I attempted a name change using a similar method to the one you posted. I actually just completed the name change successfully using the terminal with the following command line:
mysqldump -uroot -proot --protocol=socket -S mysql.sock My-Database | mysql -uroot -proot --protocol=socket -S mysql.sock my_database
I was treading lightly as I have active records that I did not want to lose, but this method worked nicely. Thanks for the feedback.
Chris
@aheinzm: I thought the same thing, but apparently the ticks are not picked up or added to the value that is placed in the app/config/database.php file. I'm learning the ropes, so everyday is a journey. Thanks for the feedback.
Chris
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community