您只需要确保在php中更改连接字符串,以匹配数据库的名称。
You just need to make sure that you change the connection strings in the PHP to match the name of the database.
如果您使用本指南作为学校课程的一部分,那么可以向老师询问要连接到的数据库的名称。
Find out from your instructor the database name that you will need to be connected to.
如图1所示,您需要指定数据库的模式名称、管理用户名和密码。
As shown in Figure 1, you need to specify the database's schema name, admin user, and a password.
JDBCUserName:输入db2admin或者您的数据库用户名称。
如您已经看到的,odbc_connect函数接受od bc友好的链接字符串、数据库用户名称和相关密码。
You've already seen that odbc_connect takes in an ODBC-friendly connection string, a database user name, and the relevant password.
您的数据库表也不必包含具有特定名称的特定字段:如果您没有名为id 的主键字段,也不会有什么问题。
Your database tables don't have to contain certain fields with certain names, either: If you don't have a primary key field named id, the world won't end.
在ssl属性中,确认密钥存储库的位置是否与您的密钥数据库名称和位置相符。
In the SSL properties, verify that the location of the key repository matches your key database name and location.
通过使用您自己的数据库名称、服务器名称、别名、路径等等,可以修改这个场景。
You can adapt this scenario using your own database names, server names, aliases, paths, and so on.
为了将此代码片段用作起始构建块,您需要替换虚拟链接、数据库名称和登录信息来反映您自己的环境。
To use this code fragment as a starter building block, you will need to replace the dummy links, database name, and login information to reflect your own environment.
请注意JNDI名称是如何同您设计数据库时创建的数据源名称相关联的。
Note how the JNDI names tie up with the datasource names you created when you were planning the database.
您选什么名称都没有关系,只要与在服务器代码中再次打开数据库时所用的名称保持一致即可。
It doesn't matter much what you pick as long as you're consistent when you open the database again in your server code.
接下来,将提示您输入数据库的名称,如图10所示。
Next, you are prompted to enter the database, as shown in Figure 10.
在ConnectionProperties对话框中,输入您的用户名、密码、服务器名称和数据库名称。
In the Connection Properties dialog box, enter your user name, password, server name, and database name.
单击Next按钮,下一个对话框将要求您输入数据库连接信息,包括数据库名称、用户名、密码和运行数据库的服务器名称和端口。
Click the next button. The next dialog asks you to enter database connection information, including database name, username, password, and name and port of the server hosting the database.
在完成对字段列表的操作之后,您惟一需要做的就是添加FROM字符串,该字符串后面是数据库表的名称,您仍然可以在TListBox控件中找到该表。
When the list of fields is complete, you only need to add the FROM string, followed by the name of the database table, which can still be found in the TListBox control.
这将提示您为创建的数据库提供名称、在哪个dbspace上创建、创建的数据库是否带日志。
You will be prompted for the name of the database to be created, which dbspace, and whether the database is to be created with a log or not.
请再次确保将所有清单中的dbname替换为您数据库的名称,以及将user 1替换为您的用户名。
Again, please make sure you replace dbname with your database name and user1 with your username in all the listings.
为此,您需要将数据库池的名称指定为ref - name,该名称应映射到web . xml中的resource - ref。
To do this, you need to specify the name of the database pool to the ref-name, which should be mapped with the resource-ref in web.xml.
您可以使用TestNG - Abbot(现在的名称为FEST)来测试前端,但是这样仍然无法告诉您任何有关数据库功能的内容。
You could test the front end with TestNG-Abbot (now renamed to FEST), but that still won't tell you anything about the database functionality.
注意:在生产中,你应该总是输入您的内容数据库的一个有意义的名称!
NOTE: in Production, you should always type a meaningful name for your content databases!
如果您重命名某个文件组,然后将其部署到现有数据库,则将创建一个具有新名称的文件组,现有的文件组不会发生变化。
If you rename a filegroup and then deploy it to an existing database, a filegroup that has the new name is created and the existing filegroup does not change.
当您命名数据库对象时,如果您提供的名称已经由其他对象使用,则将向您发出警报。
When you name database objects you will be alerted if the name you provide is already used by another object.
如果您提供由DBMS检测到的重复名称,则可视化数据库工具最初将接受该名称,但是DBMS将在您尝试将该对象保存到数据库时拒绝该名称。
If you provide a duplicate name that is detected by the DBMS, Visual database Tools will initially accept the name, but the DBMS will reject the name when you try to save the object to the database.
如果所选择的名称已分配给另一个数据库对象,则出现消息,提示您选择另一个名称。
If the name is already assigned to another database object, a message prompts you to choose another name.
如果所选择的名称已分配给另一个数据库对象,则出现消息,提示您选择另一个名称。
If the name is already assigned to another database object, a message prompts you to choose another name.
应用推荐