Guest User

Untitled

a guest
Apr 11th, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Here's my DATABASE.yml
  2.  
  3. # SQLite version 3.x
  4. # gem install sqlite3-ruby (not necessary on OS X Leopard)
  5. development:
  6. adapter: mysql
  7. database: events_development
  8. username: root
  9. password:
  10. host: localhost
  11.  
  12. # Warning: The database defined as "test" will be erased and
  13. # re-generated from your development database when you run "rake".
  14. # Do not set this db to the same as development or production.
  15. test:
  16. adapter: mysql
  17. database: events_test
  18. username: root
  19. password:
  20. host: localhost
  21.  
  22. production:
  23. adapter: mysql
  24. database: events_production
  25. username: root
  26. password:
  27. host: localhost
  28.  
  29.  
  30.  
  31. ----------
  32.  
  33. and my path
  34.  
  35. export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
  36.  
  37. ------
  38.  
  39. and my response from terminal
  40.  
  41.  
  42. Last login: Sun Jun 14 13:10:16 on ttys000
  43. You have new mail.
  44. VarelaMacbook:~ Mike$ mysqlshow
  45. +--------------------+
  46. | Databases |
  47. +--------------------+
  48. | information_schema |
  49. | test |
  50. +--------------------+
  51. VarelaMacbook:~ Mike$ mysqladmin -uroot create events_development
  52. mysqladmin: CREATE DATABASE failed; error: 'Can't create database 'events_development'; database exists'
  53. VarelaMacbook:~ Mike$ mysqlshow
  54. +--------------------+
  55. | Databases |
  56. +--------------------+
  57. | information_schema |
  58. | test |
  59. +--------------------+
  60. VarelaMacbook:~ Mike$ which mysql
  61. /usr/local/mysql/bin/mysql
Add Comment
Please, Sign In to add comment