Skip to main content
Goline It Services Logo

News

  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Goline is proud to announce a strategic partnership with Cloudflare, the world leader in web performance and security solutions. This collaboration aims to provide goline.ch customers with state-of-the-art protection against cyber threats while delivering lightning-fast website performance. Through this partnership, Goline integrates Cloudflare’s advanced services, including DDoS protection, CDN caching, DNS security, and edge computing, allowing businesses to secure and optimize their websites effortlessly. Users will benefit from improved page load speed, enhanced reliability, and robust defense against malicious attacks. This partnership with Cloudflare enables goline to offer unmatched security and performance solutions to clients. By leveraging Cloudflare’s cutting-edge technology,...

MySQL user management

Paolo Caparrelli DBMS 22 June 2022

<!DOCTYPE html> <html> <head> </head> <body> <p>MySQL user management</p> <div style="color: #000000; font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;"><br />Create a new user with password and set all permissions</div> <div style="color: #000000; font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;"> <pre>CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; FLUSH PRIVILEGES; </pre> <h2>How To Grant Different User Permissions</h2> <pre><br />Here is a short list of other common possible permissions that users can enjoy. </pre> <ul> <li>ALL PRIVILEGES- as we saw previously, this would allow a MySQL user all access to a designated database (or if no database is selected, across the system)</li> <li>CREATE- allows them to create new tables or databases</li> <li>DROP- allows them to them to delete tables or databases</li> <li>DELETE- allows them to delete rows from tables</li> <li>INSERT- allows them to insert rows into tables</li> <li>SELECT- allows them to use the Select command to read through databases</li> <li>UPDATE- allow them to update table rows</li> <li>GRANT OPTION- allows them to grant or remove other users' privileges</li> </ul> <pre><br />To provide a specific user with a permission, you can use this framework: </pre> <pre> GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’; </pre> <pre><br />If you want to give them access to any database or to any table, make sure to put an asterisk (*) in the place of the database name or table name.<br />Each time you update or change a permission be sure to use the Flush Privileges command.<br />If you need to revoke a permission, the structure is almost identical to granting it: </pre> <pre> REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’; </pre> <pre><br />Just as you can delete databases with DROP, you can use DROP to delete a user altogether: </pre> <pre> DROP USER ‘demo’@‘localhost’; </pre> <pre><br />To test out your new user, log out by typing </pre> <pre> quit </pre> <pre><br />and log back in with this command in terminal: </pre> <pre>mysql -u [username]-p<br /><br /><span style="color: #ff0000;"><strong>IF YOU SHOULD HAVE STILL PROBLEMS WITH PERMISSIONS: dpkg-reconfigure mysql-server </strong></span></pre> </div> </body> </html>

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x
| Reply