Below is the query to delete the user account in MySQL by checking if exists before: Replace YourUser with the username of the user which you want to delete in the above query.More
The best programming blog.
Covering a wide array of programming topics.
How to delete a MySQL user
Below is the query to delete a user account in MySQL: In the above query, replace UserNameOfTheUser with username of the user account you want to delete.More
MySQL drop database if exists
Below is the query in MySQL to drop the database by checking if exists before: Replace YourDbName with your own db name in the above query.More
Exclude folders files in ArchiveFiles task in Azure Devops
While running the ArchiveFiles task in Azure Devops pipeline if you want to exclude certian folders and files then you can follow the following stps: Add a CopyFiles task just before the ArchiveFiles task. The tasks order will look like this: In the above example the files with extenions md, yml and the folder git…More
How to check Ionic version
Steps to check the Ionic version in an Ionic project: Open your project in VSCode. Open Terminal in VSCode. Type the following command : The terminal will show the output of the version being used in your project. Example: the above results “6.19.0” is the version of Ionic installed.More
NullInjectorError: No provider for Service! Angular
Error while calling a page in Angular: The solution is to add the service in the providers section in your module. Go to the module where you want to use that service and add the service as following: In the above code the YourService was added like this in the providers:More
The class ‘…Service’ cannot be created via dependency injection, as it does not have an Angular decorator
If you are getting the following error while adding a service to an Angular module: The class ‘…Service’ cannot be created via dependency injection, as it does not have an Angular decorator. This will result in an error at runtime. Either add the @Injectable() decorator to ‘…Service’, or configure a different provider (such as a…More
How to increase font size of Chrome dev tools
In to increase the font size of Chrome dev tools you have to press the following key combination: MAC: ⌘ + and ⌘ – Windows: Ctrl + and Ctrl –More
How to change username of your account in Mac
Go to Sytem Preferences > Users & Groups Click the lock to make changes: Right the click the user and select Advanced Options … Modify the required values to replace teh old account with the new one: Click OK button. Restart the Mac. Log on to the modfied account.More
How to add multiline comments in TypeScript
You can wrap your code like this to have multiline comments in TypeScript: Example:More