从命令行打开mysql时遇到问题

时间:2020-03-16 17:10:12

标签: mysql

Windows 10机器,如果有所不同。我跟随Larry Ullman撰写的“动态网站的php和mysql”一书,并尝试访问mysql客户端。当我打开cmd时,出现以下内容

var contextARegistration = Lifestyle.Scoped.CreateRegistration( () => new ContextA( SqlServerDbContextOptionsExtensions.UseSqlServer( new DbContextOptionsBuilder(), sqlConnection).Options), container); container.RegisterConditional( typeof(DbContext), contextARegistration, c => c.Consumer.ImplementationType.GenericTypeArguments .Any(r => r.Namespace == "NameSpace.ContextA")); var contextBRegistration = Lifestyle.Scoped.CreateRegistration( () => new ContextB( SqlServerDbContextOptionsExtensions.UseSqlServer( new DbContextOptionsBuilder(), sqlConnection).Options), container); container.RegisterConditional( typeof(DbContext), contextBRegistration, c => c.Consumer.ImplementationType.GenericTypeArguments .Any(r => r.Namespace == "NameSpace.ContextB"));

我认为那很正常,我只是把它扔进去,因为它不在书中。

因此,根据这本书,我将通过xampp包含到mysql的路径

c:users/psych>cd

但它说

c:\xampp\mysql\bin -u root -p;

有人可以在这里帮助吗?

1 个答案:

答案 0 :(得分:0)

您需要提及路径和程序名称才能运行程序。

c:\xampp\mysql\bin\mysql -u root -p

\bin\文件夹中有多个程序。