Click to open "Connect", enter the password, and click OK.
Right-click "localhost3306" and click Open Connection.
Related recommendations: "Navicat for mysql graphic tutorial"
Right-click MySQL, click "Open Database", click Open "surface".
Right-click the mouse and click "Design Table". You can see that there is a key icon after the "name" key. This key icon is the primary key.
Next, create a new primary key. Click the key directly to create a new primary key. You can also select the table and click the primary key icon above to create a new primary key.
The above is the detailed content of How to create primary key in navicat premium. For more information, please follow other related articles on the PHP Chinese website!