To do a program today, select the option from the CheckBoxList into the database, and then to read the data from the database and also to correspond to the corresponding options up, stored in the database is very simple, with a circular deposit on the line, in order to read the convenience, I added a comma after each, the code is as follows:
Save in
I'm just learning to use PDO to manipulate the database, but, after connecting to the database, use Query () to execute the SELECT query statement, but always error: No database selected, code and error information as follows:
the error is:
Fatal error:uncaught exception ' pdoexception ' with message ' sqlstate[3d000]: Invalid Catalog No
[Email protected]:/home/xiachengjiao# vi/webwall/mysql/my.cnf(see parameters in config file)[Email protected]:/webwall/mysql/bin#./mysql-u root-s/var/mysql1.sock-pEnter Password:enter password:********ERROR 2002 (HY000): Can ' t connect to local MySQL serverthrough socket '/var/mysql1.sock ' (2)Prompt to not connect to the databaseFind causes and resolvePs-a |grep MySQL view database process is not turned on[Email protected]:/webwall/mysql/bin$sudo./s
Program written on this machine, the database in the company on another computer (sqlserver2008), the machine does not install any database software, the program can connect to the database
Database model (ID-PID): A father has many children, and a child has only one father, such a structure is a tree. In a database table, the ID and PID (parent_id) are designed. A tree is stored by ID and PID.
From the object-oriented design point of view, in the tree node class is not suitable for PID, a node has 1 or 0 fathers, and 0 or children. So the design is as follows: This is an organizational struct
Information A
1, stop the database server, the database MDF files and LDF files copy backup a copy
2, start the database server, delete the suspect database
3, only with the backup of the database MDF file attached to the database
The following error occurred today when attaching a SQL Server 2000 database to SQL Server 2005: The attached database failed for server (MICROSOFT.SQLSERVER.SMO), database test cannot be upgraded because it is read-only, Or have read-only files. Make the database or file writable, and then rerun the recovery operation
Tags: data copy BSP share picture IMA mysq PNG program database Migration data tableDuring the development process, the Python flask framework uses sqlalmysql to connect to the MySQL database.Do not modify the structure of the data table during program connection data volume. For example, in the connection state using the following software to modify the structure of the data table, the software will immediately die, this use stop flask connection, yo
Label:poiinit_idenablemax offsetsnappysumjpg Data type MongoDB 3.x data capacity gb failure type Server power loss causes WIREDTIGER.WT file corruption Start error detected data files in E:\DTLFolder\MongoDB\dat A created by the ' Wiredtiger ' storage engine, so setting the active storage engine to ' Wiredtiger '. 2018-05-08t16:10:09.755 +0800 I STORAGE [initandlisten] Wiredtiger_open config:create,cache_size=18g,session_max=20000,eviction= ( threads_max=4), config_base=false,statistics= (FAST),
The difference between spring transaction and database database transaction
When you do not use a transaction, the method that invokes the hibernatetemplate immediately commits the transaction.
And after using the transaction, after you have configured the method of the class to commit the transaction, if a method of multiple inserts, modifications or deletions at the same time
, will be unified to commi
Oracle's commit is to submit the data, before you commit the previous operation, the update is memory, not updated to the physical file.
So you shut down the database without a commit, and the data in the database is not updated. Commit is submitted against: DMLDML (data manipulation Language) requires submission, which is part of data management operations, such as insert (insert), Update (modify), delete
--Create a linked serverexec sp_addlinkedserver ' srv_lnk ', ', ' SQLOLEDB ', ' Remote server name or IP address 'exec sp_addlinkedsrvlogin ' Srv_lnk ', ' false ', NULL, ' username ', ' password 'Go
--query ExampleSELECT * from Srv_lnk. Database name. dbo. Table name
--Import sampleSELECT * into table from Srv_lnk. Database name. dbo. Table name
--Delete a linked server when you no longer use itexec sp_d
I also look at your aunt's blog and then a little to learn, do not ask the plenary, leave an impression Database name The database name is the identity of a database, represented by the parameter db_name. If multiple databases are installed on a single machine, each database has a
Obtain data from one database and store it in another database ., Another database
1 insert into 'game _ 2015newterm_user '('uid', 'q1', 'xm', 'ct ', 'by', 'lj', 'xmlq ', 'ctlbq', 'bylbq', 'ljlbq', 'tdate') select uid, '0', '3', '0', '0', '0 ', '0', '0', '0', '0', '2017-03-16 'from game_2015school_user
Obtain the user ID from the game_2015school_userzhong table
copy one from the installed ASA11/12, in the Java subdirectory, or from the ase15\jconnect-6_0\classes subdirectory below. If you don't have these installed versions at hand, you can copy one from the attachment jconn3 http://dl.iteye.com/topics/download/86b782dc-b1e2-314d-8135-f733ef6db518 here.
4. Start adding JDBC Driver Manager, database->driver manager->create new driver
The ASA driver configuration is shown in the following illustration:
The
1, Source library switch Logfile,checkpoint,shutdown;
2, the Source Library startup Restrict;shutdown Immediate;startup Mount;
3, Rman target/backup as copy database;
4, new library restore SPFile, controlfile, catalog backup, startup Mount; switch database to copy; ALTER DATABASE open;
5, the new library rebuilds the control file.
Because the source library
Attachment database, the old problem, and later found a solution on the internet, recorded.
The following is reproduced from the network:
After consulting the data, found that is not a file read-only problem, strictly speaking should be a "permission" problem, the current SQL Server login account does not have to attach files to write permission, there will be the above "read-only" hint, the solution has the following several ways:
1. Copy th
An error occurred while attaching the database to SQL Server. The error message is as follows:
Error 0: Unable to load DLL Microsoft prompts you to operate SQL database at will to avoid unnecessary trouble or the DLL. Open the query analyzer and execute the following statement:
Drop procedure sp_oacreateDrop procedure xp_dirtreeDrop procedure xp_regwriteExec sp_addextendedproc n 'sp_oacreate ', n' odsole7
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.