【问题标题】:How to make a connection to mysql using terminal mac osx?如何使用终端 mac osx 连接到 mysql?
【发布时间】:2012-01-09 15:19:47
【问题描述】:

我已经下载了 mysql for mac,现在我已经在终端上打开了它,我不确定下一步是什么。

对于我的网站,我使用 123-reg.co.uk,并且我有一个 phpmyadmin 帐户。我可以将该帐户服务器/用户名/密码链接到下面的终端吗?

或者我可以使用 localhost 创建一个新帐户吗?这是怎么发生的?

下面是 Is terminal 目前所说的:

Last login: Wed Nov 30 10:57:14 on ttys000
Jamess-iMac:~ user$ /Users/user/Downloads/mysql-5.5.18-osx10.6-x86\ 
3/bin/mysql     ; exit;
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is ***
Server version: 5.5.18 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

谢谢!

詹姆斯

【问题讨论】:

  • 首先你想做什么

标签: mysql terminal phpmyadmin


【解决方案1】:

您已连接。您可能希望use databasename; 联系更多:)

但是你仍然有这个问题,必须有一个建立连接的目的。

【讨论】:

  • 我还没建数据库,需要先做吗?我只是不知道如何在终端中输入密码/用户名/主机。我还必须将终端或文件上传到我的 123-reg.co.uk 文件管理器吗?
  • 您的大部分问题对我来说没有足够的意义来回答,但是要创建数据库,您可能需要使用create database databasename;
  • ERROR 1064 (42000):您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的“james create database databasename”附近使用正确的语法这是我得到的?
猜你喜欢
  • 2012-12-02
  • 1970-01-01
  • 2015-07-05
  • 1970-01-01
  • 2018-04-19
  • 2016-08-08
  • 2011-12-08
  • 1970-01-01
  • 2011-02-15
相关资源
最近更新 更多